summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/evaluate-global-discardSource.js
blob: 9bacbacbabe5161552e9e375a212c18026736529 (plain)
1
2
3
4
5
6
7
8
9
10
11
load(libdir + "asserts.js");

let g = newGlobal({newCompartment: true});

let g_discardSource = newGlobal({
  discardSource: true,
});

g.evaluate("function f() { (function(){})(); }; f();", {
  global: g_discardSource,
});