aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ufuzz/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js
index e5bf0083..23b3a144 100644
--- a/test/ufuzz/index.js
+++ b/test/ufuzz/index.js
@@ -1710,7 +1710,9 @@ function log(options) {
function sort_globals(code) {
var globals = sandbox.run_code("throw Object.keys(this).sort();" + code);
- return globals.length ? "var " + globals.join(",") + ";" + code : code;
+ return globals.length ? "var " + globals.map(function(name) {
+ return name + "=" + name;
+ }).join(",") + ";" + code : code;
}
function fuzzy_match(original, uglified) {