diff options
Diffstat (limited to 'ext/url/01_urlpattern.js')
-rw-r--r-- | ext/url/01_urlpattern.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/url/01_urlpattern.js b/ext/url/01_urlpattern.js index 51968e68a..ac18a4c82 100644 --- a/ext/url/01_urlpattern.js +++ b/ext/url/01_urlpattern.js @@ -11,6 +11,7 @@ ((window) => { const core = window.Deno.core; + const ops = core.ops; const webidl = window.__bootstrap.webidl; const { ArrayPrototypeMap, @@ -68,7 +69,7 @@ }); } - const components = core.opSync("op_urlpattern_parse", input, baseURL); + const components = ops.op_urlpattern_parse(input, baseURL); for (const key of ObjectKeys(components)) { try { @@ -144,8 +145,7 @@ }); } - const res = core.opSync( - "op_urlpattern_process_match_input", + const res = ops.op_urlpattern_process_match_input( input, baseURL, ); @@ -184,8 +184,7 @@ }); } - const res = core.opSync( - "op_urlpattern_process_match_input", + const res = ops.op_urlpattern_process_match_input( input, baseURL, ); |