mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
Remove a Gecko profiler specific test case
This commit is contained in:
parent
2497ed0ae9
commit
965e505fb8
@ -1,7 +1,6 @@
|
|||||||
/*---
|
/*---
|
||||||
defines: [printBugNumber, inSection, printStatus, writeHeaderToLog,
|
defines: [printBugNumber, inSection, printStatus, writeHeaderToLog,
|
||||||
assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer,
|
assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer]
|
||||||
enableGeckoProfilingWithSlowAssertions, enableGeckoProfiling, disableGeckoProfiling]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
function printBugNumber() {}
|
function printBugNumber() {}
|
||||||
@ -68,7 +67,3 @@ if (globalThis.createExternalArrayBuffer === undefined) {
|
|||||||
return new ArrayBuffer(size);
|
return new ArrayBuffer(size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (globalThis.enableGeckoProfilingWithSlowAssertions === undefined) {
|
|
||||||
globalThis.enableGeckoProfilingWithSlowAssertions = globalThis.enableGeckoProfiling =
|
|
||||||
globalThis.disableGeckoProfiling = () => {}
|
|
||||||
}
|
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user