summaryrefslogtreecommitdiff
path: root/fxjs/cjs_globalconsts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_globalconsts.cpp')
-rw-r--r--fxjs/cjs_globalconsts.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/fxjs/cjs_globalconsts.cpp b/fxjs/cjs_globalconsts.cpp
index 598479780a..a07bf60302 100644
--- a/fxjs/cjs_globalconsts.cpp
+++ b/fxjs/cjs_globalconsts.cpp
@@ -6,12 +6,12 @@
#include "fxjs/cjs_globalconsts.h"
-#define GLOBAL_STRING(rt, name, value) \
- (rt)->DefineGlobalConst( \
- (name), [](const v8::FunctionCallbackInfo<v8::Value>& info) { \
- info.GetReturnValue().Set( \
- CFXJS_Engine::CurrentEngineFromIsolate(info.GetIsolate()) \
- ->NewString(value)); \
+#define GLOBAL_STRING(rt, name, value) \
+ (rt)->DefineGlobalConst( \
+ (name), [](const v8::FunctionCallbackInfo<v8::Value>& info) { \
+ info.GetReturnValue().Set( \
+ CFXJS_Engine::EngineFromIsolateCurrentContext(info.GetIsolate()) \
+ ->NewString(value)); \
})
// static