Trivial program crashes Prepack
NTillmann opened this issue · 0 comments
NTillmann commented
I guess something goes very wrong with Prepack's internal handling of stack overflows.
I expect a nice error message since we even have a configurable maxStackDepth
bound.
function f() { f(); }
f();
=>
unexpected Invariant Violation:
This is likely a bug in Prepack, not your code. Feel free to open an issue on GitHub.:
Invariant Violation:
This is likely a bug in Prepack, not your code. Feel free to open an issue on GitHub.
at invariant (/Users/nikolait/git/prepack/lib/invariant.js:24:15)
at Realm.popContext (/Users/nikolait/git/prepack/lib/realm.js:393:28)
at LexicalEnvironment.executeSources (/Users/nikolait/git/prepack/lib/environment.js:1028:18)
at Serializer._execute (/Users/nikolait/git/prepack/lib/serializer/serializer.js:96:40)
at statistics.total.measure (/Users/nikolait/git/prepack/lib/serializer/serializer.js:162:23)
at PerformanceTracker.measure (/Users/nikolait/git/prepack/lib/statistics.js:91:14)
at Serializer.init (/Users/nikolait/git/prepack/lib/serializer/serializer.js:156:35)
at prepackSources (/Users/nikolait/git/prepack/lib/prepack-standalone.js:80:33)
at prepackFileSync (/Users/nikolait/git/prepack/lib/prepack-node.js:198:48)
at run (/Users/nikolait/git/prepack/lib/prepack-cli.js:535:24)