mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 06:31:15 +00:00
Snapshot clean ups
- Don't call eval() in mock_runtime - not allowed - see js2c.py. - Don't use v8_use_external_startup_data - Move MakeSnapshot to snapshot_creator.cc - Use logging.h in from_snapshot.cc
This commit is contained in:
parent
064d889af0
commit
cc2ae2d316
9 changed files with 56 additions and 97 deletions
|
@ -1,6 +1,5 @@
|
|||
// A simple runtime that doesn't involve typescript or protobufs to test
|
||||
// libdeno. Invoked by mock_runtime_test.cc
|
||||
const window = eval("this");
|
||||
|
||||
function assert(cond) {
|
||||
if (!cond) throw Error("mock_runtime.js assert failed");
|
||||
|
@ -68,7 +67,6 @@ function DoubleSubFails() {
|
|||
deno.sub((channel, msg) => assert(false));
|
||||
}
|
||||
|
||||
|
||||
// The following join has caused SnapshotBug to segfault when using kKeep.
|
||||
[].join("");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue