| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 86a2ddd9cdf932f55355d376753a4dab6afedf67..338b2c29345d480a76ded83b006dd2afd71d27d2 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -16091,11 +16091,12 @@ static void ObjectWithExternalArrayTestHelper(Local<Context> context,
|
| "ext_array[3];");
|
| CHECK_EQ(33, result->Int32Value(context).FromJust());
|
|
|
| - result = CompileRun("ext_array[0] = 10; ext_array[1] = 11;"
|
| - "ext_array[2] = 12; ext_array[3] = 13;"
|
| - "ext_array.__defineGetter__('2',"
|
| - "function() { return 120; });"
|
| - "ext_array[2];");
|
| + result = CompileRun(
|
| + "ext_array[0] = 10; ext_array[1] = 11;"
|
| + "ext_array[2] = 12; ext_array[3] = 13;"
|
| + "try { ext_array.__defineGetter__('2',"
|
| + "function() { return 120; }); } catch(e) {};"
|
| + "ext_array[2];");
|
| CHECK_EQ(12, result->Int32Value(context).FromJust());
|
|
|
| result = CompileRun("var js_array = new Array(40);"
|
|
|