diff options
Diffstat (limited to 'deno2/main.cc')
-rw-r--r-- | deno2/main.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deno2/main.cc b/deno2/main.cc index b5c703b55..5d8263d28 100644 --- a/deno2/main.cc +++ b/deno2/main.cc @@ -10,7 +10,7 @@ #include "snapshot_deno.cc" int main(int argc, char** argv) { - v8_init(); + deno::v8_init(); auto natives_blob = *StartupBlob_natives(); printf("natives_blob %d bytes\n", natives_blob.raw_size); @@ -21,10 +21,10 @@ int main(int argc, char** argv) { v8::V8::SetNativesDataBlob(&natives_blob); v8::V8::SetSnapshotDataBlob(&snapshot_blob); - Deno* d = deno_from_snapshot(&snapshot_blob, NULL, NULL); - int r = deno_load(d, "main2.js", "foo();"); + deno::Deno* d = deno::deno_from_snapshot(&snapshot_blob, NULL, NULL); + int r = deno::deno_load(d, "main2.js", "foo();"); if (r != 0) { - printf("Error! %s\n", deno_last_exception(d)); + printf("Error! %s\n", deno::deno_last_exception(d)); exit(1); } |