diff options
Diffstat (limited to 'src/d8-posix.cc')
-rw-r--r-- | src/d8-posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/d8-posix.cc b/src/d8-posix.cc index fe130cef..2535ce05 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]; |