dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…