Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // We still get onNewScript notifications for code compiled off the main thread.
3 if (workerThreadCount() === 0)
4 quit(0);
6 var g = newGlobal();
7 var dbg = new Debugger(g);
9 var log;
10 dbg.onNewScript = function (s) {
11 log += 's';
12 assertEq(s.source.text, '"t" + "wine"');
13 }
15 log = '';
16 g.offThreadCompileScript('"t" + "wine"');
17 assertEq(g.runOffThreadScript(), 'twine');
18 assertEq(log, 's');