| Index: test/cctest/compiler/test-run-deopt.cc
|
| diff --git a/test/cctest/compiler/test-run-deopt.cc b/test/cctest/compiler/test-run-deopt.cc
|
| index 7d1ae4f4715264add41f3940180eb4ab259fce66..4d35f2ef4dba45974e0ce5b897315b5fbc38f671 100644
|
| --- a/test/cctest/compiler/test-run-deopt.cc
|
| +++ b/test/cctest/compiler/test-run-deopt.cc
|
| @@ -2,6 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +// TODO(jochen): Remove this after the setting is turned on globally.
|
| +#define V8_IMMINENT_DEPRECATION_WARNINGS
|
| +
|
| #include "src/v8.h"
|
|
|
| #include "src/frames-inl.h"
|
| @@ -22,7 +25,10 @@ static void InstallIsOptimizedHelper(v8::Isolate* isolate) {
|
| v8::Local<v8::Context> context = isolate->GetCurrentContext();
|
| v8::Local<v8::FunctionTemplate> t =
|
| v8::FunctionTemplate::New(isolate, IsOptimized);
|
| - context->Global()->Set(v8_str("IsOptimized"), t->GetFunction());
|
| + CHECK(context->Global()
|
| + ->Set(context, v8_str("IsOptimized"),
|
| + t->GetFunction(context).ToLocalChecked())
|
| + .FromJust());
|
| }
|
|
|
|
|
|
|