mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Bug 1366925 - add regression test for JS shell ordering problem, r=me
--HG-- extra : source : 4135740caaa4588b80449a58a5f6582f834f5306 extra : histedit_source : 4cb6892f7a341dfe5688d75c42a367fd0fcf9159
This commit is contained in:
parent
3c6127896a
commit
a4aeac7e8e
10
js/src/jit-test/tests/bug1366925.js
Normal file
10
js/src/jit-test/tests/bug1366925.js
Normal file
@ -0,0 +1,10 @@
|
||||
// JS shell shutdown ordering
|
||||
|
||||
// Avoid crashing with --no-threads
|
||||
if (helperThreadCount() == 0)
|
||||
quit();
|
||||
|
||||
evalInWorker(`
|
||||
var lfGlobal = newGlobal();
|
||||
lfGlobal.offThreadCompileScript(\`{ let x; throw 42; }\`);
|
||||
`);
|
Loading…
Reference in New Issue
Block a user