summaryrefslogtreecommitdiff
path: root/ext/url/01_urlpattern.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-05-01 22:30:02 +0900
committerGitHub <noreply@github.com>2023-05-01 15:30:02 +0200
commit6728ad4203d731e555dabf89ec6157f113454ce6 (patch)
tree956dc2d403b5a6ef107c35cab1ccc259ad4d86a1 /ext/url/01_urlpattern.js
parent94a148cdb6f7660518c75a3c20109bf64848f0f1 (diff)
fix(core): Use primordials for methods (#18839)
I would like to get this change into Deno before merging https://github.com/denoland/deno_lint/pull/1152
Diffstat (limited to 'ext/url/01_urlpattern.js')
-rw-r--r--ext/url/01_urlpattern.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/url/01_urlpattern.js b/ext/url/01_urlpattern.js
index 3c08bc1b8..04bb50fd7 100644
--- a/ext/url/01_urlpattern.js
+++ b/ext/url/01_urlpattern.js
@@ -13,8 +13,9 @@ import * as webidl from "ext:deno_webidl/00_webidl.js";
const primordials = globalThis.__bootstrap.primordials;
const {
ArrayPrototypeMap,
- ObjectKeys,
+ ArrayPrototypePop,
ObjectFromEntries,
+ ObjectKeys,
RegExpPrototypeExec,
RegExpPrototypeTest,
SafeRegExp,
@@ -178,7 +179,7 @@ class URLPattern {
const { 0: values, 1: inputs } = res;
if (inputs[1] === null) {
- inputs.pop();
+ ArrayPrototypePop(inputs);
}
/** @type {URLPatternResult} */