mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-11 14:46:37 +03:00
Many strict-only tests involving eval check if certain SyntaxErrors are thrown.
Some of those would require changes to Babel to support properly, and some we should handle ourselves in Prepack some day. But for now, ignore.
This commit is contained in:
parent
4f28bfeb18
commit
fc08285970
@ -1031,6 +1031,13 @@ function runTest(
|
||||
}
|
||||
}
|
||||
|
||||
// Many strict-only tests involving eval check if certain SyntaxErrors are thrown.
|
||||
// Some of those would require changes to Babel to support properly, and some we should handle ourselves in Prepack some day.
|
||||
// But for now, ignore.
|
||||
if (testFileContents.includes("eval(") && strict) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (interpreterStack) {
|
||||
stack = `Interpreter: ${interpreterStack}${EOL}Native: ${err.nativeStack}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user