Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 50df0dd382ad31626c4fc274168e57a4c8131afc..e1920075fb0cafff4a3887e06ba8cfe12704f922 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -677,8 +677,9 @@ void Accessors::ScriptIsEmbedderDebugScriptGetter( |
DisallowHeapAllocation no_allocation; |
HandleScope scope(isolate); |
Object* object = *Utils::OpenHandle(*info.This()); |
- bool is_embedder_debug_script = |
- Script::cast(JSValue::cast(object)->value())->is_embedder_debug_script(); |
+ bool is_embedder_debug_script = Script::cast(JSValue::cast(object)->value()) |
+ ->origin_options() |
+ .IsEmbedderDebugScript(); |
Object* res = *isolate->factory()->ToBoolean(is_embedder_debug_script); |
info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate))); |
} |