summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2020-01-21 14:57:56 -0500
committerGitHub <noreply@github.com>2020-01-21 14:57:56 -0500
commitfa7f34eb8cec07f4c68ca4e9c46a983bc3e2308f (patch)
tree821263579dd75de3c16508fdecfdcaba52987373 /core
parent7fd50065a7d8a4c6ed1b1090703a7baaabdbd6aa (diff)
Revert "Create an old program to be used in snapshot. (#3644)"
Ref #3712. This change allowed the deno_typescript crate to reference cli/js/lib.deno_runtime.d.ts which breaks "cargo package". We intend to reintroduce a revised version of this patch later once "cargo package" is working and tested. This reverts commit 737ab94ea1bdf65eeef323ea37e84bcf430fb92c.
Diffstat (limited to 'core')
-rw-r--r--core/isolate.rs1
-rw-r--r--core/shared_queue.js1
2 files changed, 1 insertions, 1 deletions
diff --git a/core/isolate.rs b/core/isolate.rs
index e4405b704..0696d5ad4 100644
--- a/core/isolate.rs
+++ b/core/isolate.rs
@@ -692,7 +692,6 @@ impl Isolate {
let mut hs = v8::HandleScope::new(&mut locker);
let scope = hs.enter();
self.global_context.reset(scope);
- self.shared_response_buf.reset(scope);
let snapshot_creator = self.snapshot_creator.as_mut().unwrap();
let snapshot = snapshot_creator
diff --git a/core/shared_queue.js b/core/shared_queue.js
index 093cc223f..8ebb19e5e 100644
--- a/core/shared_queue.js
+++ b/core/shared_queue.js
@@ -184,6 +184,7 @@ SharedQueue Binary Layout
}
function dispatch(opId, control, zeroCopy = null) {
+ maybeInit();
return Deno.core.send(opId, control, zeroCopy);
}