Index: src/property-descriptor.cc |
diff --git a/src/property-descriptor.cc b/src/property-descriptor.cc |
index 31efb413b6a74dc48435fb69323d9553311e41b6..f22a2630e21505ce8d21c20b12641c3cf1879f00 100644 |
--- a/src/property-descriptor.cc |
+++ b/src/property-descriptor.cc |
@@ -249,7 +249,7 @@ bool PropertyDescriptor::ToPropertyDescriptor(Isolate* isolate, |
if (!getter.is_null()) { |
// 18c. If IsCallable(getter) is false and getter is not undefined, |
// throw a TypeError exception. |
- if (!getter->IsCallable() && !getter->IsUndefined()) { |
+ if (!getter->IsCallable() && !getter->IsUndefined(isolate)) { |
isolate->Throw(*isolate->factory()->NewTypeError( |
MessageTemplate::kObjectGetterCallable, getter)); |
return false; |
@@ -267,7 +267,7 @@ bool PropertyDescriptor::ToPropertyDescriptor(Isolate* isolate, |
if (!setter.is_null()) { |
// 21c. If IsCallable(setter) is false and setter is not undefined, |
// throw a TypeError exception. |
- if (!setter->IsCallable() && !setter->IsUndefined()) { |
+ if (!setter->IsCallable() && !setter->IsUndefined(isolate)) { |
isolate->Throw(*isolate->factory()->NewTypeError( |
MessageTemplate::kObjectSetterCallable, setter)); |
return false; |