Skip to content

Commit

Permalink
fix: update wpt + align AbortController (denoland#9907)
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Mar 27, 2021
1 parent 940b3a2 commit b112496
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
6 changes: 6 additions & 0 deletions op_crates/web/03_abort_signal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
#aborted = false;
#abortAlgorithms = new Set();

static abort() {
const signal = new AbortSignal(illegalConstructorKey);
signal[signalAbort]();
return signal;
}

[add](algorithm) {
this.#abortAlgorithms.add(algorithm);
}
Expand Down
2 changes: 1 addition & 1 deletion test_util/wpt
Submodule wpt updated 4607 files
24 changes: 14 additions & 10 deletions tools/wpt/expectation.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@
"default-reader.any.js": true,
"floating-point-total-queue-size.any.js": true,
"garbage-collection.any.js": true,
"general.any.js": true,
"general.any.js": [
"ReadableStream: if pull rejects, it should error the stream"
],
"patched-global.any.js": true,
"reentrant-strategies.any.js": true,
"tee.any.js": true,
Expand All @@ -367,7 +369,9 @@
"flush.any.js": true,
"general.any.js": true,
"lipfuzz.any.js": true,
"patched-global.any.js": false,
"patched-global.any.js": [
"TransformStream constructor should not call setters for highWaterMark or size"
],
"properties.any.js": true,
"reentrant-strategies.any.js": true,
"strategies.any.js": true,
Expand Down Expand Up @@ -630,6 +634,12 @@
"idlharness.any.js": false,
"url-constructor.any.js": [
"Parsing: <http:https://example.com/\ud800𐟾\udfff﷐﷏﷯ﷰ￾￿?\ud800𐟾\udfff﷐﷏﷯ﷰ￾￿> against <about:blank>",
"Parsing: <file:https://%43%7C> against <about:blank>",
"Parsing: <file:https://%43|> against <about:blank>",
"Parsing: <file:https://C%7C> against <about:blank>",
"Parsing: <file:https://%43%7C/> against <about:blank>",
"Parsing: <https://%43%7C/> against <about:blank>",
"Parsing: <asdf:https://%43|/> against <about:blank>",
"Parsing: </> against <file:https://h/C:/a/b>",
"Parsing: <file:\\\\//> against <about:blank>",
"Parsing: <file:\\\\\\\\> against <about:blank>",
Expand Down Expand Up @@ -722,18 +732,12 @@
],
"urlsearchparams-append.any.js": true,
"urlsearchparams-constructor.any.js": [
"URLSearchParams constructor, empty string as argument",
"Construct with 2 unpaired surrogates (no trailing)",
"Construct with 3 unpaired surrogates (no leading)",
"Construct with object with NULL, non-ASCII, and surrogate keys"
],
"urlsearchparams-delete.any.js": true,
"urlsearchparams-foreach.any.js": [
"For-of Check",
"delete next param during iteration",
"delete current param during iteration",
"delete every param seen during iteration"
],
"urlsearchparams-foreach.any.js": true,
"urlsearchparams-get.any.js": true,
"urlsearchparams-getall.any.js": true,
"urlsearchparams-has.any.js": true,
Expand Down Expand Up @@ -794,4 +798,4 @@
}
}
}
}
}

0 comments on commit b112496

Please sign in to comment.