diff --git a/harness/sm/non262.js b/harness/sm/non262.js index c1829e3e4c..f5df624569 100644 --- a/harness/sm/non262.js +++ b/harness/sm/non262.js @@ -1,7 +1,6 @@ /*--- defines: [printBugNumber, inSection, printStatus, writeHeaderToLog, - assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer, - enableGeckoProfilingWithSlowAssertions, enableGeckoProfiling, disableGeckoProfiling] + assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer] ---*/ function printBugNumber() {} @@ -68,7 +67,3 @@ if (globalThis.createExternalArrayBuffer === undefined) { return new ArrayBuffer(size); } } -if (globalThis.enableGeckoProfilingWithSlowAssertions === undefined) { - globalThis.enableGeckoProfilingWithSlowAssertions = globalThis.enableGeckoProfiling = - globalThis.disableGeckoProfiling = () => {} -} \ No newline at end of file diff --git a/test/staging/sm/extensions/sps-generators.js b/test/staging/sm/extensions/sps-generators.js deleted file mode 100644 index b6bab02f10..0000000000 --- a/test/staging/sm/extensions/sps-generators.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Any copyright is dedicated to the Public Domain. - * http://creativecommons.org/licenses/publicdomain/ - */ - -/*--- -includes: [sm/non262.js, sm/non262-shell.js, sm/non262-extensions-shell.js] -flags: - - noStrict -description: | - pending -esid: pending ----*/ - -//----------------------------------------------------------------------------- -var BUGNUMBER = 822041; -var summary = "Live generators should not cache Gecko Profiler state"; - -print(BUGNUMBER + ": " + summary); - -function* gen() { - var x = yield turnoff(); - yield x; - yield 'bye'; -} - -function turnoff() { - print("Turning off profiler\n"); - disableGeckoProfiling(); - return 'hi'; -} - -for (var slowAsserts of [ true, false ]) { - // The slowAssertions setting is not expected to matter - if (slowAsserts) - enableGeckoProfilingWithSlowAssertions(); - else - enableGeckoProfiling(); - - g = gen(); - assert.sameValue(g.next().value, 'hi'); - assert.sameValue(g.next('gurgitating...').value, 'gurgitating...'); - for (var x of g) - assert.sameValue(x, 'bye'); -} - -// This is really a crashtest