From 7784cc2c1537a23b8b8ffa634b1a9b1ddf88886a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 12 Jun 2018 06:36:01 +0200 Subject: Fix protobufjs snapshotting. --- deno2/snapshot_creator.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'deno2/snapshot_creator.cc') diff --git a/deno2/snapshot_creator.cc b/deno2/snapshot_creator.cc index bf377535a..8441e766f 100644 --- a/deno2/snapshot_creator.cc +++ b/deno2/snapshot_creator.cc @@ -1,5 +1,6 @@ // Copyright 2018 Ryan Dahl // All rights reserved. MIT License. +// Hint: --trace_serializer is a useful debugging flag. #include #include #include @@ -126,6 +127,8 @@ int main(int argc, char** argv) { const char* natives_out_cc = argv[4]; const char* snapshot_out_cc = argv[5]; + v8::V8::SetFlagsFromCommandLine(&argc, argv, true); + auto js_data = ReadFile(js_fn); auto natives_blob = ReadFile(natives_in_bin); auto snapshot_in_blob = ReadFile(snapshot_in_bin); -- cgit v1.2.3