Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upvm: rename vm.Module to vm.SourceTextModule #22007
Conversation
devsnek
added
the
vm
label
Jul 28, 2018
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
added
build
process
vm
labels
Jul 28, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Is it in preparation for adding other kinds of modules? |
This comment has been minimized.
This comment has been minimized.
|
@targos mostly... even if the spec doesn't define any more types we should still name them correctly. |
cjihrig
added
the
semver-major
label
Jul 28, 2018
cjihrig
approved these changes
Jul 28, 2018
|
No opinion on the change, but the code LGTM. |
This comment has been minimized.
This comment has been minimized.
|
It doesn't have to be semver major. The API is experimental and behind a flag |
TimothyGu
approved these changes
Jul 28, 2018
TimothyGu
removed
the
semver-major
label
Jul 28, 2018
This comment has been minimized.
This comment has been minimized.
|
Not that you have to, but can you explain this? What kind of ES modules would not have some kind of source text associated with them? If this is to distinguish from e.g. WASM modules or so, maybe referring to the used language might be better? (Also, fyi: @nodejs/modules) |
This comment has been minimized.
This comment has been minimized.
|
@addaleax 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, |
ljharb
approved these changes
Jul 28, 2018
benjamingr
approved these changes
Jul 28, 2018
jkrems
approved these changes
Jul 28, 2018
BridgeAR
approved these changes
Jul 29, 2018
This comment has been minimized.
This comment has been minimized.
|
@devsnek Would also be nice if my last comment (#22007 (comment)) is integrated into the commit message body. |
This comment has been minimized.
This comment has been minimized.
|
@TimothyGu will do when I land |
targos
approved these changes
Jul 29, 2018
This comment has been minimized.
This comment has been minimized.
hiroppy
approved these changes
Jul 30, 2018
jasnell
approved these changes
Jul 30, 2018
jdalton
approved these changes
Jul 30, 2018
bmeck
approved these changes
Jul 30, 2018
devsnek
force-pushed the
devsnek:rename-vm-module
branch
from
62adcd3
to
2bdcdfc
Jul 31, 2018
devsnek
closed this
Jul 31, 2018
devsnek
merged commit 2bdcdfc
into
nodejs:master
Jul 31, 2018
devsnek
deleted the
devsnek:rename-vm-module
branch
Jul 31, 2018
This comment has been minimized.
This comment has been minimized.
|
landed in 2bdcdfc |
devsnek commentedJul 28, 2018
Should have always been named SourceTextModule
/cc @nodejs/vm
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes