summaryrefslogtreecommitdiff
path: root/deno2/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deno2/main.cc')
-rw-r--r--deno2/main.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/deno2/main.cc b/deno2/main.cc
index 29aacc4e6..d16dd44ba 100644
--- a/deno2/main.cc
+++ b/deno2/main.cc
@@ -6,12 +6,12 @@
#include "include/deno.h"
int main(int argc, char** argv) {
- deno::v8_init();
+ deno_init();
- deno::Deno* d = deno::from_snapshot(NULL, NULL);
- int r = deno::deno_load(d, "main2.js", "foo();");
+ Deno* d = deno_new(NULL, NULL);
+ int r = deno_load(d, "main2.js", "foo();");
if (r != 0) {
- printf("Error! %s\n", deno::deno_last_exception(d));
+ printf("Error! %s\n", deno_last_exception(d));
exit(1);
}
}