GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vm: remove unnecessary access checks · nodejs/node@7b81e4b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_contextify.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_contextify.cc‎

Copy file name to clipboardExpand all lines: src/node_contextify.cc
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ class ContextifyContext {
208208
GlobalPropertyDeleterCallback,
209209
GlobalPropertyEnumeratorCallback,
210210
CreateDataWrapper(env));
211-
object_template->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
212-
GlobalPropertyIndexedAccessCheck);
213211

214212
Local<Context> ctx = Context::New(env->isolate(), nullptr, object_template);
215213
if (!ctx.IsEmpty())
@@ -343,22 +341,6 @@ class ContextifyContext {
343341
}
344342

345343

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-
362344
static void GlobalPropertyGetterCallback(
363345
Local<String> property,
364346
const PropertyCallbackInfo<Value>& args) {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.