summaryrefslogtreecommitdiff
path: root/core/01_core.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-01-27 13:36:36 +0100
committerGitHub <noreply@github.com>2022-01-27 13:36:36 +0100
commit884143218fad0e18f7553aaf079d52de703f7601 (patch)
tree9b9e9d30ea647041438ef8fa974b8d4234cabf73 /core/01_core.js
parentdcf8f144ab0516936bfa4e93357d71f1732d880e (diff)
refactor: update runtime code for primordial checks for "instanceof" (#13497)
Diffstat (limited to 'core/01_core.js')
-rw-r--r--core/01_core.js4
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 });