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