Index: test/mjsunit/switch.js |
=================================================================== |
--- test/mjsunit/switch.js (revision 3006) |
+++ test/mjsunit/switch.js (working copy) |
@@ -269,7 +269,7 @@ |
function makeVeryLong(length) { |
- var res = "function() {\n" + |
+ var res = "(function () {\n" + |
" var res = 0;\n" + |
" for (var i = 0; i <= " + length + "; i++) {\n" + |
" switch(i) {\n"; |
@@ -280,7 +280,7 @@ |
" }\n" + |
" }\n" + |
" return res;\n" + |
- "}"; |
+ "})"; |
return eval(res); |
} |
var verylong_size = 1000; |