summaryrefslogtreecommitdiff
path: root/lib/vm.js
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2018-07-30 16:11:46 -0400
committerJon Moss <me@jonathanmoss.me>2018-08-04 15:32:35 -0400
commitbd2ee60eae26973244e094c1f28d737afd392e94 (patch)
tree17f80fc6a03d90ea094bc70f6a33768becec3143 /lib/vm.js
parent34fb560c924f365b2d09b70376768634c527e3ae (diff)
downloadandroid-node-v8-bd2ee60eae26973244e094c1f28d737afd392e94.tar.gz
android-node-v8-bd2ee60eae26973244e094c1f28d737afd392e94.tar.bz2
android-node-v8-bd2ee60eae26973244e094c1f28d737afd392e94.zip
src: remove unused env->vm_parsing_context_symbol
Stopped being used via 77b52fd58f7398a81999c81afd21fe2e156c0766, was originally added in d932e802317f9f61bd10988189fa43ed03ad0f61. For the one remaining usecase inside of `lib/vm.js`, define a Symbol at the top of the file. PR-URL: https://github.com/nodejs/node/pull/22034 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib/vm.js')
-rw-r--r--lib/vm.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vm.js b/lib/vm.js
index c813ca3049..3dd63fe2af 100644
--- a/lib/vm.js
+++ b/lib/vm.js
@@ -23,14 +23,13 @@
const {
ContextifyScript,
- kParsingContext,
makeContext,
isContext: _isContext,
} = process.binding('contextify');
-
const { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes;
const { isUint8Array } = require('internal/util/types');
const { validateInt32, validateUint32 } = require('internal/validators');
+const kParsingContext = Symbol('script parsing context');
class Script extends ContextifyScript {
constructor(code, options = {}) {