From bd2ee60eae26973244e094c1f28d737afd392e94 Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Mon, 30 Jul 2018 16:11:46 -0400 Subject: src: remove unused env->vm_parsing_context_symbol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- lib/vm.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/vm.js') 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 = {}) { -- cgit v1.2.3