Skip to content

Commit f6ddec5

Browse files
committed
Merge pull request #428 from NathanaelA/runtimeVersion2
Updated runtimeVersion check for current Master
2 parents e97c304 + 880cef3 commit f6ddec5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/jni/Runtime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ Isolate* Runtime::PrepareV8Runtime(const string& filesPath, jstring packageName,
442442
globalTemplate->Set(ConvertToV8String("__disableVerboseLogging"), FunctionTemplate::New(isolate, CallbackHandlers::DisableVerboseLoggingMethodCallback));
443443
globalTemplate->Set(ConvertToV8String("__exit"), FunctionTemplate::New(isolate, CallbackHandlers::ExitMethodCallback));
444444
globalTemplate->Set(ConvertToV8String("__nativeRequire"), FunctionTemplate::New(isolate, Module::RequireCallback));
445+
globalTemplate->Set(ConvertToV8String("__runtimeVersion"), ConvertToV8String(NATIVE_SCRIPT_RUNTIME_VERSION), readOnlyFlags);
445446

446447
m_weakRef.Init(isolate, globalTemplate, m_objectManager);
447448

0 commit comments

Comments
 (0)