Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index f4e40cdd3844b35b03541eaa95abb91441546848..393c663b9a05af1261c63c257357a26a3f9fc59a 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -14641,11 +14641,12 @@ class RegExpStringModificationTest { |
// Inject the input as a global variable. |
i::Handle<i::String> input_name = |
factory->NewStringFromAscii(i::Vector<const char>("input", 5)); |
- i::Isolate::Current()->native_context()->global_object()->SetProperty( |
- *input_name, |
- *input_, |
+ i::JSReceiver::SetProperty( |
+ i::handle(i::Isolate::Current()->native_context()->global_object()), |
+ input_name, |
+ input_, |
NONE, |
- i::kNonStrictMode)->ToObjectChecked(); |
+ i::kNonStrictMode); |
MorphThread morph_thread(this); |
morph_thread.Start(); |