dillon1000/react

Commit

Stop passing NodePaths to CompilerError

This was causing issues in various places where errors would be stringified. 
Because the inner detail objects would contain a NodePath with circular 
structures this would cause a JSON.stringify error in code outside of our 
control. This change makes it so we always print the codeframe from the NodePath 
and then passing the string.
Browse files
Changed paths5 files
First-parent comparison
M compiler/forget/packages/playground/lib/forgetMonacoDiagnostics.ts ModifiedM compiler/forget/src/CompilerError.ts ModifiedM compiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/HIRBuilder.ts ModifiedM compiler/forget/src/__tests__/hir-test.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…