Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index b73ab0bd6a6be5b171a1c1258d65e05c0c8f079f..d567cef6fa28862442c9279d960877d5a6237448 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -140,6 +140,17 @@ Worker* GetWorkerFromInternalField(Isolate* isolate, Local<Object> object) { |
#endif // !V8_SHARED |
+bool NamedAccessCheck(v8::Local<v8::Object> host, v8::Local<v8::Value> key, |
+ v8::AccessType type, v8::Local<v8::Value> data) { |
+ return false; |
+} |
+ |
+ |
+bool IndexedAccessCheck(v8::Local<v8::Object> host, uint32_t index, |
+ v8::AccessType type, v8::Local<v8::Value> data) { |
+ return false; |
+} |
+ |
} // namespace |
@@ -1178,6 +1189,9 @@ Local<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) { |
.ToLocalChecked(), |
os_templ); |
+ global_template->SetAccessCheckCallbacks(NamedAccessCheck, |
+ IndexedAccessCheck); |
+ |
return global_template; |
} |