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:
Steve Fink 2017-06-19 17:22:45 -07:00
parent 3c6127896a
commit a4aeac7e8e

View 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; }\`);
`);