mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
15 lines
425 B
JavaScript
15 lines
425 B
JavaScript
//! unsupported
|
|
|
|
// A SyntaxError leaks to phantom.onError, despite the try-catch.
|
|
setup({ allow_uncaught_exception: true });
|
|
|
|
test(function () {
|
|
var helperFile = "../fixtures/parse-error-helper.js";
|
|
try {
|
|
phantom.injectJs(helperFile);
|
|
} catch (e) {
|
|
assert_equals(e.stack[0].file, helperFile);
|
|
assert_equals(e.stack[0].line, 2);
|
|
}
|
|
}, "stack trace from syntax error in injected file");
|