GeezerVison is showing github.com — vm: remove unnecessary access checks · nodejs/node@7b81e4b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_contextify.cc -18Lines changed: 0 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -208,8 +208,6 @@ class ContextifyContext { |
208 | 208 | GlobalPropertyDeleterCallback, |
209 | 209 | GlobalPropertyEnumeratorCallback, |
210 | 210 | CreateDataWrapper(env)); |
211 | | - object_template->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck, |
212 | | - GlobalPropertyIndexedAccessCheck); |
213 | 211 |
|
214 | 212 | Local<Context> ctx = Context::New(env->isolate(), nullptr, object_template); |
215 | 213 | if (!ctx.IsEmpty()) |
@@ -343,22 +341,6 @@ class ContextifyContext { |
343 | 341 | } |
344 | 342 |
|
345 | 343 |
|
346 | | - static bool GlobalPropertyNamedAccessCheck(Local<Object> host, |
347 | | - Local<Value> key, |
348 | | - AccessType type, |
349 | | - Local<Value> data) { |
350 | | - return true; |
351 | | - } |
352 | | - |
353 | | - |
354 | | - static bool GlobalPropertyIndexedAccessCheck(Local<Object> host, |
355 | | - uint32_t key, |
356 | | - AccessType type, |
357 | | - Local<Value> data) { |
358 | | - return true; |
359 | | - } |
360 | | - |
361 | | - |
362 | 344 | static void GlobalPropertyGetterCallback( |
363 | 345 | Local<String> property, |
364 | 346 | const PropertyCallbackInfo<Value>& args) { |
|