| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 945075c2b1ebf017c0ca49bf1eb41741dfe4493e..21de33d09ae8fcdec688d6e8bef2e29f39ae88b5 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -9858,15 +9858,16 @@ THREADED_TEST(ConstructorForObject) {
|
| value = CompileRun("new obj2(28)");
|
| CHECK(try_catch.HasCaught());
|
| String::Utf8Value exception_value1(try_catch.Exception());
|
| - CHECK_EQ(0, strcmp("TypeError: obj2 is not a function", *exception_value1));
|
| + CHECK_EQ(0,
|
| + strcmp("TypeError: obj2 is not a constructor", *exception_value1));
|
| try_catch.Reset();
|
|
|
| Local<Value> args[] = {v8_num(29)};
|
| value = instance->CallAsConstructor(1, args);
|
| CHECK(try_catch.HasCaught());
|
| String::Utf8Value exception_value2(try_catch.Exception());
|
| - CHECK_EQ(0,
|
| - strcmp("TypeError: object is not a function", *exception_value2));
|
| + CHECK_EQ(
|
| + 0, strcmp("TypeError: object is not a constructor", *exception_value2));
|
| try_catch.Reset();
|
| }
|
|
|
|
|