diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-12 06:36:01 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-12 17:26:18 +0200 |
commit | 7784cc2c1537a23b8b8ffa634b1a9b1ddf88886a (patch) | |
tree | 9c9d1de258b586e7fe866b8a4085cecf9fda430a /deno2/snapshot_creator.cc | |
parent | dd48f8095c3357e6ec0e66042141c4e342707da5 (diff) |
Fix protobufjs snapshotting.
Diffstat (limited to 'deno2/snapshot_creator.cc')
-rw-r--r-- | deno2/snapshot_creator.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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 <ry@tinyclouds.org> // All rights reserved. MIT License. +// Hint: --trace_serializer is a useful debugging flag. #include <assert.h> #include <stdio.h> #include <string.h> @@ -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); |