Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/JsEngine.cpp

Issue 29523555: Issue 5552 - use strict mode for all JS in libadblocklus (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: move setting of strict mode to do it once Created Aug. 22, 2017, 7:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compat.js ('k') | test/FileSystemJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « lib/compat.js ('k') | test/FileSystemJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld