Closed Luna-Klatzer closed 1 year ago
Path | Size | Loading time (3g) | Running time (snapdragon) | Total time |
---|---|---|---|---|
./kipper/web/kipper-standalone.min.js | 128.56 KB (0%) | 2.6 s (0%) | 984 ms (+0.15% 🔺) | 3.6 s |
./kipper/web/kipper-standalone.js | 128.6 KB (0%) | 2.6 s (0%) | 738 ms (-7.42% 🔽) | 3.4 s |
What type of change does this PR perform?
Summary
New minor bug-fix version
0.10.3
, which fixes a bug in the error reporting behaviour of the CLI and core compiler.List of Changes
v16
(and above).v8
(and above).KipperCompiler.compile()
. This means that syntax errors will not be thrown anymore unless the argumentabortOnFirstError
is specified, but also that syntax errors will be returned through aKipperCompileResult
instance that stores them in theerrors
property. (Same behaviour as with semantic or type errors) This also means thatKipperCompileResult.programCtx
can now beundefined
, if there has been a syntax error, as at that stage of compilation it can not be created.--abort-on-first-error
. This does not include the compile argumentCompileConfig.abortOnFirstError
.CITATION.cff
.Does this PR create new warnings?
No.
Detailed Changelog
Changed
executeKipperProgram
toRun
as a private function.KipperCompileResult
to new filecompile-result.ts
in the same directory.KipperCompileResult.programCtx
can now be alsoundefined
, due to the changed behaviour that now aKipperCompileResult
is also returned for syntax errors (where it has no value).Fixed
Deprecated
--abort-on-first-error
in favour of--no-recover
. #501.Linked issues or PRs