Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index ae2c8a73d65178fba5f134f3bc2f9be2d7541aaf..75939db8bb1d9c7503ac7357dd5a510ca326ff21 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3498,7 +3498,8 @@ Maybe<bool> v8::Object::DefineOwnProperty(v8::Local<v8::Context> context, |
auto key_obj = Utils::OpenHandle(*key); |
auto value_obj = Utils::OpenHandle(*value); |
- if (self->IsAccessCheckNeeded() && !isolate->MayAccess(self)) { |
+ if (self->IsAccessCheckNeeded() && |
+ !isolate->MayAccess(handle(isolate->context()), self)) { |
isolate->ReportFailedAccessCheck(self); |
return Nothing<bool>(); |
} |