diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-05-01 22:30:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 15:30:02 +0200 |
commit | 6728ad4203d731e555dabf89ec6157f113454ce6 (patch) | |
tree | 956dc2d403b5a6ef107c35cab1ccc259ad4d86a1 /runtime/js/30_os.js | |
parent | 94a148cdb6f7660518c75a3c20109bf64848f0f1 (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 'runtime/js/30_os.js')
-rw-r--r-- | runtime/js/30_os.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js index 3af5803ad..a5a55e19b 100644 --- a/runtime/js/30_os.js +++ b/runtime/js/30_os.js @@ -6,10 +6,12 @@ import { Event, EventTarget } from "ext:deno_web/02_event.js"; const primordials = globalThis.__bootstrap.primordials; const { Error, + FunctionPrototypeBind, SymbolFor, } = primordials; -const windowDispatchEvent = EventTarget.prototype.dispatchEvent.bind( +const windowDispatchEvent = FunctionPrototypeBind( + EventTarget.prototype.dispatchEvent, globalThis, ); |