| Index: test/cctest/test-compiler.cc
|
| diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
|
| index b74ccb2b8d1063f287d7ace011022a69d04c67a6..1e3e0d55fac9e69a6ee922520bb993ba322ef6ab 100644
|
| --- a/test/cctest/test-compiler.cc
|
| +++ b/test/cctest/test-compiler.cc
|
| @@ -47,7 +47,7 @@ class PrintExtension : public v8::Extension {
|
| PrintExtension() : v8::Extension("v8/print", kSource) { }
|
| virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
|
| v8::Handle<v8::String> name);
|
| - static v8::Handle<v8::Value> Print(const v8::Arguments& args);
|
| + static void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
|
| private:
|
| static const char* kSource;
|
| };
|
| @@ -62,16 +62,15 @@ v8::Handle<v8::FunctionTemplate> PrintExtension::GetNativeFunction(
|
| }
|
|
|
|
|
| -v8::Handle<v8::Value> PrintExtension::Print(const v8::Arguments& args) {
|
| +void PrintExtension::Print(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| for (int i = 0; i < args.Length(); i++) {
|
| if (i != 0) printf(" ");
|
| v8::HandleScope scope(args.GetIsolate());
|
| v8::String::Utf8Value str(args[i]);
|
| - if (*str == NULL) return v8::Undefined();
|
| + if (*str == NULL) return;
|
| printf("%s", *str);
|
| }
|
| printf("\n");
|
| - return v8::Undefined();
|
| }
|
|
|
|
|
|
|