summaryrefslogtreecommitdiff
path: root/ext/url/01_urlpattern.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-01-27 16:27:22 +0100
committerGitHub <noreply@github.com>2022-01-27 16:27:22 +0100
commitf248e6f1778dc26db91d3322de2ecca5d1aa9866 (patch)
tree46b1ff59091cc8d31ff67427173d3a0148734007 /ext/url/01_urlpattern.js
parent382a978859a7a7a4351542be818bb2e59523429c (diff)
Revert "refactor: update runtime code for primordial checks for "instanceof" (#13497)" (#13511)
This reverts commit 884143218fad0e18f7553aaf079d52de703f7601.
Diffstat (limited to 'ext/url/01_urlpattern.js')
-rw-r--r--ext/url/01_urlpattern.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/ext/url/01_urlpattern.js b/ext/url/01_urlpattern.js
index 51968e68a..19883311f 100644
--- a/ext/url/01_urlpattern.js
+++ b/ext/url/01_urlpattern.js
@@ -85,42 +85,42 @@
}
get protocol() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].protocol.patternString;
}
get username() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].username.patternString;
}
get password() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].password.patternString;
}
get hostname() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].hostname.patternString;
}
get port() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].port.patternString;
}
get pathname() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].pathname.patternString;
}
get search() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].search.patternString;
}
get hash() {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
return this[_components].hash.patternString;
}
@@ -130,7 +130,7 @@
* @returns {boolean}
*/
test(input, baseURL = undefined) {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
const prefix = "Failed to execute 'test' on 'URLPattern'";
webidl.requiredArguments(arguments.length, 1, { prefix });
input = webidl.converters.URLPatternInput(input, {
@@ -170,7 +170,7 @@
* @returns {URLPatternResult | null}
*/
exec(input, baseURL = undefined) {
- webidl.assertBranded(this, URLPatternPrototype);
+ webidl.assertBranded(this, URLPattern);
const prefix = "Failed to execute 'exec' on 'URLPattern'";
webidl.requiredArguments(arguments.length, 1, { prefix });
input = webidl.converters.URLPatternInput(input, {
@@ -241,7 +241,6 @@
}
webidl.configurePrototype(URLPattern);
- const URLPatternPrototype = URLPattern.prototype;
webidl.converters.URLPatternInit = webidl
.createDictionaryConverter("URLPatternInit", [