diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-02-01 18:06:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 18:06:11 +0100 |
commit | 8176a4d1663529fb8aeebf7734c4994fa1d583f4 (patch) | |
tree | 94c7d6eb2679e641f59cf78640340f5b7af0022e /core/01_core.js | |
parent | abf89f8c4675ed78c992fafd6d758bf4bfca8a1a (diff) |
refactor: primordials for instanceof (#13527)
Diffstat (limited to 'core/01_core.js')
-rw-r--r-- | core/01_core.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/01_core.js b/core/01_core.js index 66530f7d5..d9a110eea 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -195,6 +195,7 @@ this.name = "BadResource"; } } + const BadResourcePrototype = BadResource.prototype; class Interrupted extends Error { constructor(msg) { @@ -202,6 +203,7 @@ this.name = "Interrupted"; } } + const InterruptedPrototype = Interrupted.prototype; // Extra Deno.core.* exports const core = ObjectAssign(globalThis.Deno.core, { @@ -221,7 +223,9 @@ opresolve, syncOpsCache, BadResource, + BadResourcePrototype, Interrupted, + InterruptedPrototype, }); ObjectAssign(globalThis.__bootstrap, { core }); |