summaryrefslogtreecommitdiff
path: root/core/libdeno/snapshot_creator.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-06-06 19:07:47 -0400
committerGitHub <noreply@github.com>2019-06-06 19:07:47 -0400
commitcbcb78f1884c675268cbce700e7d43bfd1b78481 (patch)
tree493224e763c787a59b74cece0f87d74637a78e96 /core/libdeno/snapshot_creator.cc
parent341150266eef10b005388db4210571554bb4b931 (diff)
libdeno: expose dynamic import (#2461)
Diffstat (limited to 'core/libdeno/snapshot_creator.cc')
-rw-r--r--core/libdeno/snapshot_creator.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/libdeno/snapshot_creator.cc b/core/libdeno/snapshot_creator.cc
index 081bd1156..bd3c8081d 100644
--- a/core/libdeno/snapshot_creator.cc
+++ b/core/libdeno/snapshot_creator.cc
@@ -21,7 +21,8 @@ int main(int argc, char** argv) {
CHECK(deno::ReadFileToString(js_fn, &js_source));
deno_init();
- deno_config config = {1, deno::empty_snapshot, deno::empty_buf, nullptr};
+ deno_config config = {1, deno::empty_snapshot, deno::empty_buf, nullptr,
+ nullptr};
Deno* d = deno_new(config);
deno_execute(d, nullptr, js_fn, js_source.c_str());