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

Unified Diff: test/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: Created Aug. 22, 2017, 7:29 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
Index: test/JsEngine.cpp
diff --git a/test/JsEngine.cpp b/test/JsEngine.cpp
index 207316da60d2cd6f4a0ff8c768590f8660ee0b76..838f29e6325d65f58770030986b0582b9cffa55a 100644
--- a/test/JsEngine.cpp
+++ b/test/JsEngine.cpp
@@ -70,7 +70,7 @@ namespace {
AdblockPlus::JsValueList params;
params.push_back(v1);
params.push_back(v2);
- return jsEngine.Evaluate("f = function(a, b) { return a == b };").Call(params).AsBool();
+ return jsEngine.Evaluate("(function(a, b) { return a == b })").Call(params).AsBool();
}
}
« src/JsEngine.cpp ('K') | « test/GlobalJsObject.cpp ('k') | test/WebRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld