diff options
author | Gus Caplan <me@gus.host> | 2018-07-27 21:21:30 -0500 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-07-31 10:23:03 -0500 |
commit | 2bdcdfc3cbf735ede8130901f58efcd4c6fe9697 (patch) | |
tree | 5f040a87e2f7ef06b67a4ef17a7478a89b5a985a /lib/vm.js | |
parent | 3b23b4d7c08e3e61f7e1ff3b91a6626b2bcfd5e3 (diff) | |
download | android-node-v8-2bdcdfc3cbf735ede8130901f58efcd4c6fe9697.tar.gz android-node-v8-2bdcdfc3cbf735ede8130901f58efcd4c6fe9697.tar.bz2 android-node-v8-2bdcdfc3cbf735ede8130901f58efcd4c6fe9697.zip |
vm: rename vm.Module to vm.SourceTextModule
At the last TC39 meeting, a new type of Module Records backed by
JavaScript source called Dynamic Module Records was discussed, and
it is now at Stage 1. Regardless of whether that proposal makes it
all the way into the spec, SourceTextModule is indeed a more
descriptive and accurate name for what this class represents.
PR-URL: https://github.com/nodejs/node/pull/22007
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Diffstat (limited to 'lib/vm.js')
-rw-r--r-- | lib/vm.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -296,5 +296,7 @@ module.exports = { isContext, }; -if (process.binding('config').experimentalVMModules) - module.exports.Module = require('internal/vm/module').Module; +if (process.binding('config').experimentalVMModules) { + const { SourceTextModule } = require('internal/vm/source_text_module'); + module.exports.SourceTextModule = SourceTextModule; +} |