Index: src/d8-posix.cc |
diff --git a/src/d8-posix.cc b/src/d8-posix.cc |
index fe130cef7aa1e69f4054a75400b269f32b2754ca..2535ce05e59119baf2ae48a6951697db1db59835 100644 |
--- a/src/d8-posix.cc |
+++ b/src/d8-posix.cc |
@@ -311,7 +311,7 @@ static Handle<Value> GetStdout(int child_fd, |
int read_timeout, |
int total_timeout) { |
Handle<String> accumulator = String::Empty(); |
- const char* source = "function(a, b) { return a + b; }"; |
+ const char* source = "(function(a, b) { return a + b; })"; |
Handle<Value> cons_as_obj(Script::Compile(String::New(source))->Run()); |
Handle<Function> cons_function(Function::Cast(*cons_as_obj)); |
Handle<Value> cons_args[2]; |