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 — src: remove unused env->vm_parsing_context_symbol · nodejs/node@c09872b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • vm.js
  • src
    • env.h
    • node_contextify.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/vm.js‎

Copy file name to clipboardExpand all lines: lib/vm.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@
2323

2424
const {
2525
ContextifyScript,
26-
kParsingContext,
2726
makeContext,
2827
isContext: _isContext,
2928
} = process.binding('contextify');
30-
3129
const {
3230
ERR_INVALID_ARG_TYPE,
3331
ERR_OUT_OF_RANGE
3432
} = require('internal/errors').codes;
3533
const { isUint8Array } = require('internal/util/types');
34+
const kParsingContext = Symbol('script parsing context');
3635

3736
class Script extends ContextifyScript {
3837
constructor(code, options = {}) {
Collapse file

‎src/env.h‎

Copy file name to clipboardExpand all lines: src/env.h
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ struct PackageConfig {
346346
V(tls_wrap_constructor_function, v8::Function) \
347347
V(tty_constructor_template, v8::FunctionTemplate) \
348348
V(udp_constructor_function, v8::Function) \
349-
V(vm_parsing_context_symbol, v8::Symbol) \
350349
V(url_constructor_function, v8::Function) \
351350
V(write_wrap_template, v8::ObjectTemplate)
352351

Collapse file

‎src/node_contextify.cc‎

Copy file name to clipboardExpand all lines: src/node_contextify.cc
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -608,16 +608,6 @@ class ContextifyScript : public BaseObject {
608608

609609
target->Set(class_name, script_tmpl->GetFunction());
610610
env->set_script_context_constructor_template(script_tmpl);
611-
612-
Local<Symbol> parsing_context_symbol =
613-
Symbol::New(env->isolate(),
614-
FIXED_ONE_BYTE_STRING(env->isolate(),
615-
"script parsing context"));
616-
env->set_vm_parsing_context_symbol(parsing_context_symbol);
617-
target->Set(env->context(),
618-
FIXED_ONE_BYTE_STRING(env->isolate(), "kParsingContext"),
619-
parsing_context_symbol)
620-
.FromJust();
621611
}
622612

623613

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.