summaryrefslogtreecommitdiff
path: root/iono/iono.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'iono/iono.cpp')
-rw-r--r--iono/iono.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/iono/iono.cpp b/iono/iono.cpp
index c101e45..cec96f1 100644
--- a/iono/iono.cpp
+++ b/iono/iono.cpp
@@ -133,8 +133,8 @@ static const std::string main_code = "const publicRequire ="
" global.eval(x);"
"};"
""
- "global.__iono_onMessage = (x) => {"
- " 0 && console.log('got __iono_onMessage', x);"
+ "global.__native_onMessage = (x) => {"
+ " 0 && console.log('got __native_onMessage', x);"
"};";
static void
@@ -198,7 +198,7 @@ __IonoInstance::__IonoInstance() :
v8::Local<v8::Object> global = setup->context()->Global();
- global->Set(setup->context(), v8::String::NewFromUtf8(isolate, "__iono_sendMessage",
+ global->Set(setup->context(), v8::String::NewFromUtf8(isolate, "__native_sendMessage",
v8::NewStringType::kNormal).ToLocalChecked(),
sendMessageFunction).Check();
_register_iono();