michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributor: Igor Bukanov michael@0: */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 543839; michael@0: var summary = 'js_GetMutableScope caller must lock the object'; michael@0: var actual; michael@0: var expect = 1; michael@0: michael@0: printBugNumber(BUGNUMBER); michael@0: printStatus (summary); michael@0: michael@0: jit(true); michael@0: michael@0: function test() michael@0: { michael@0: jit(true); michael@0: for (var i = 0; i != 100; ++i) michael@0: var tmp = { a: 1 }; michael@0: return 1; michael@0: } michael@0: michael@0: if (typeof evalcx == 'undefined') michael@0: { michael@0: print('Skipping. This test requires evalcx.'); michael@0: actual = expect; michael@0: } else { michael@0: test(); michael@0: test(); michael@0: test(); michael@0: actual = evalcx("test()", this); michael@0: } michael@0: michael@0: reportCompare(expect, actual, summary);