Update web-platform-tests to revision b'99458bfd6e43f5842a4a510cc5adfd8185e5c64c'

This commit is contained in:
WPT Sync Bot 2022-11-19 01:20:42 +00:00
parent eac515e4ab
commit ec97b29ff1
334 changed files with 5735 additions and 3175 deletions

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// └──> resolveGarbageCollection

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// └──> resolveGarbageCollection

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAsync
// └──> resolveGarbageCollection

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAsync
// └──> resolveGarbageCollection

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// ├──> maybeGarbageCollectAsync

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// ├──> maybeGarbageCollectAsync

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// ├──> maybeGarbageCollectAsync

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// └──> resolveGarbageCollection

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// └──> resolveGarbageCollection

View file

@ -2,33 +2,8 @@
* maybeGarbageCollectAsync
*
* It might garbage collect, it might not. If it doesn't, that's ok.
*
* Based on "(default export)" in
* https://github.com/web-platform-tests/wpt/pull/22835/files#diff-fba53ea423a12f40917f41ba4ffadf1e, and "$262.gc()"
* defined in https://github.com/tc39/test262/blob/main/INTERPRETING.md
*
*
* @return {undefined}
*/
async function maybeGarbageCollectAsync() {
if (typeof TestUtils !== 'undefined' && TestUtils.gc) {
await TestUtils.gc();
} else if (self.gc) {
// Use --expose_gc for V8 (and Node.js)
// to pass this flag at chrome launch use: --js-flags="--expose-gc"
// Exposed in SpiderMonkey shell as well
await self.gc();
} else if (self.GCController) {
// Present in some WebKit development environments
await GCController.collect();
} else {
/* eslint-disable no-console */
console.warn('Tests are running without the ability to do manual ' +
'garbage collection. They will still work, but ' +
'coverage will be suboptimal.');
/* eslint-enable no-console */
}
}
self.maybeGarbageCollectAsync = garbageCollect;
/**
* maybeGarbageCollectKeptObjectsAsync

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// └──> resolveGarbageCollection

View file

@ -1,3 +1,4 @@
// META: script=/common/gc.js
// META: script=resources/maybe-garbage-collect.js
// ├──> maybeGarbageCollectAndCleanupAsync
// └──> resolveGarbageCollection