summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1061534.js
blob: 3fce6a75806b582e1f463da701c152e84765cedf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
test = (function () {
  function f() {};
  return "var obj = { x : 2 };" + f.toString() + (4);
})();
evalWithCache(test, {});
function evalWithCache(code, ctx) {
  code = cacheEntry(code);
  ctx.global = newGlobal({ cloneSingletons: true });
  var res1 = evaluate(code, Object.create(ctx, {saveIncrementalBytecode: { value: true } }));
}
if (typeof assertThrowsInstanceOf === 'undefined') {
    var assertThrowsInstanceOf = function assertThrowsInstanceOf(f, ctor, msg) {};
}
evaluate('evaluate(\'assertThrowsInstanceOf(function () {}, ["jak", "ms"]);\', { noScriptRval : true, isRunOnce: true  })');