A follow-up to r3009: add parentheses around one more anonymous function.
TBR=ager@chromium.org Review URL: http://codereview.chromium.org/272045 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3058 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
a2549c96e8
commit
a7c0c6e5c4
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user