Index: test/cctest/test-debug.cc |
=================================================================== |
--- test/cctest/test-debug.cc (revision 3006) |
+++ test/cctest/test-debug.cc (working copy) |
@@ -4096,11 +4096,11 @@ |
// passed it throws an exception. |
static const char* debugger_call_with_closure_source = |
"var x = 3;" |
- "function (exec_state) {" |
+ "(function (exec_state) {" |
" if (exec_state.y) return x - 1;" |
" exec_state.y = x;" |
" return exec_state.y" |
- "}"; |
+ "})"; |
v8::Handle<v8::Function> debugger_call_with_closure; |
// Function to retrieve the number of JavaScript frames by calling a JavaScript |