| Index: src/d8-posix.cc
|
| ===================================================================
|
| --- src/d8-posix.cc (revision 8618)
|
| +++ src/d8-posix.cc (working copy)
|
| @@ -311,10 +311,6 @@
|
| int read_timeout,
|
| int total_timeout) {
|
| Handle<String> accumulator = String::Empty();
|
| - 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];
|
|
|
| int fullness = 0;
|
| static const int kStdoutReadBufferSize = 4096;
|
| @@ -350,12 +346,7 @@
|
| bytes_read + fullness :
|
| LengthWithoutIncompleteUtf8(buffer, bytes_read + fullness);
|
| Handle<String> addition = String::New(buffer, length);
|
| - cons_args[0] = accumulator;
|
| - cons_args[1] = addition;
|
| - accumulator = Handle<String>::Cast(cons_function->Call(
|
| - Shell::utility_context()->Global(),
|
| - 2,
|
| - cons_args));
|
| + accumulator = String::Concat(accumulator, addition);
|
| fullness = bytes_read + fullness - length;
|
| memcpy(buffer, buffer + length, fullness);
|
| }
|
|
|