| Index: test/cctest/compiler/test-js-context-specialization.cc
|
| diff --git a/test/cctest/compiler/test-js-context-specialization.cc b/test/cctest/compiler/test-js-context-specialization.cc
|
| index 9c024f8816d24e4f10b0283f2d5a7f9086525594..e9bf0647509622523b3b3ca0b44e7dd505d2eaa8 100644
|
| --- a/test/cctest/compiler/test-js-context-specialization.cc
|
| +++ b/test/cctest/compiler/test-js-context-specialization.cc
|
| @@ -225,10 +225,14 @@
|
| FunctionTester T(
|
| "(function() { if (false) { var x = 1; } function inc(a)"
|
| " { return x; } return inc; })()"); // x is undefined!
|
| -
|
| - CHECK(T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsUndefined());
|
| - CHECK(T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsUndefined());
|
| - CHECK(T.Call(T.Val(-2.1), T.Val(0.0)).ToHandleChecked()->IsUndefined());
|
| + i::Isolate* isolate = CcTest::i_isolate();
|
| + CHECK(
|
| + T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsUndefined(isolate));
|
| + CHECK(
|
| + T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsUndefined(isolate));
|
| + CHECK(T.Call(T.Val(-2.1), T.Val(0.0))
|
| + .ToHandleChecked()
|
| + ->IsUndefined(isolate));
|
| }
|
|
|
| {
|
|
|