diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-12-19 20:55:52 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-12-30 20:17:19 +0100 |
commit | 4100001624a4cc88c61143e2678bf80c2aacd922 (patch) | |
tree | d61fb39ac8890ec57af068e7d0f301411ec59302 /tools | |
parent | b4b9e0e28c434de926593e42248b7c18b7839b12 (diff) | |
download | android-node-v8-4100001624a4cc88c61143e2678bf80c2aacd922.tar.gz android-node-v8-4100001624a4cc88c61143e2678bf80c2aacd922.tar.bz2 android-node-v8-4100001624a4cc88c61143e2678bf80c2aacd922.zip |
lib: remove unintended access to deps/
This brings DEP0084 to End-of-Life. It is unlikely that this
has received much public usage in the first place, so removing
should be okay.
PR-URL: https://github.com/nodejs/node/pull/25138
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/js2c.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/js2c.py b/tools/js2c.py index 46cf918ba9..eff44940c5 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -214,14 +214,6 @@ source_.emplace( ); """ -DEPRECATED_DEPS = """\ -'use strict'; -process.emitWarning( - 'Requiring Node.js-bundled \\'{module}\\' module is deprecated. Please ' + - 'install the necessary module locally.', 'DeprecationWarning', 'DEP0084'); -module.exports = require('internal/deps/{module}'); -""" - def JS2C(source, target): modules = [] consts = {} @@ -265,15 +257,11 @@ def JS2C(source, target): lines = ExpandConstants(lines, consts) lines = ExpandMacros(lines, macros) - deprecated_deps = None - # On Windows, "./foo.bar" in the .gyp file is passed as "foo.bar" # so don't assume there is always a slash in the file path. if '/' in name or '\\' in name: split = re.split('/|\\\\', name) if split[0] == 'deps': - if split[1] == 'node-inspect' or split[1] == 'v8': - deprecated_deps = split[1:] split = ['internal'] + split else: split = split[1:] @@ -293,12 +281,6 @@ def JS2C(source, target): else: AddModule(name.split('.', 1)[0], lines) - # Add deprecated aliases for deps without 'deps/' - if deprecated_deps is not None: - module = '/'.join(deprecated_deps).split('.', 1)[0] - source = DEPRECATED_DEPS.format(module=module) - AddModule(module, source) - # Emit result output = open(str(target[0]), "w") output.write( |