Index: src/JsEngine.cpp |
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp |
index eb497a675d63d27be000d5f86a01eeaf7b3eeae9..475353bb4ea6e38f6db3875815f604dbefc6143c 100644 |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -52,6 +52,8 @@ namespace |
{ |
v8::V8::InitializePlatform(platform); |
v8::V8::Initialize(); |
anton
2017/08/22 08:22:33
in v8_initiliazer.cc in chromium `v8::V8::Initiali
sergei
2017/08/22 10:52:18
Good catch! Actually this particular flag is used
|
+ std::string cmd = "--use_strict"; |
+ v8::V8::SetFlagsFromString(cmd.c_str(), cmd.length()); |
} |
~V8Initializer() |