★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/22007Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm: rename vm.Module to vm.SourceTextModule #22007

Merged
merged 1 commit into from Jul 31, 2018

Conversation

@devsnek
Copy link
Member

devsnek commented Jul 28, 2018

Should have always been named SourceTextModule

/cc @nodejs/vm

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@devsnek devsnek added the vm label Jul 28, 2018

@devsnek

This comment has been minimized.

Copy link
Member Author

devsnek commented Jul 28, 2018

@targos

This comment has been minimized.

Copy link
Member

targos commented Jul 28, 2018

Is it in preparation for adding other kinds of modules?

@devsnek

This comment has been minimized.

Copy link
Member Author

devsnek commented Jul 28, 2018 •

@targos mostly... even if the spec doesn't define any more types we should still name them correctly.

@cjihrig
Copy link
Contributor

cjihrig left a comment

No opinion on the change, but the code LGTM.

@targos

This comment has been minimized.

Copy link
Member

targos commented Jul 28, 2018

It doesn't have to be semver major. The API is experimental and behind a flag

@TimothyGu TimothyGu removed the semver-major label Jul 28, 2018

@addaleax

This comment has been minimized.

Copy link
Member

addaleax commented Jul 28, 2018

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)

@TimothyGu

This comment has been minimized.

Copy link
Member

TimothyGu commented Jul 28, 2018 •

@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, SourceTextModule is indeed a more descriptive and accurate name for what this class represents.

@ljharb

ljharb approved these changes Jul 28, 2018

@jkrems

jkrems approved these changes Jul 28, 2018

@TimothyGu

This comment has been minimized.

Copy link
Member

TimothyGu commented Jul 29, 2018

@devsnek Would also be nice if my last comment (#22007 (comment)) is integrated into the commit message body.

@devsnek

This comment has been minimized.

Copy link
Member Author

devsnek commented Jul 29, 2018

@TimothyGu will do when I land 👍

@mcollina
Copy link
Member

mcollina left a comment

LGTM

@targos

targos approved these changes Jul 29, 2018

@targos

This comment has been minimized.

Copy link
Member

targos commented Jul 29, 2018

@bmeck

bmeck approved these changes Jul 30, 2018

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: #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>

@devsnek devsnek force-pushed the devsnek:rename-vm-module branch from 62adcd3 to 2bdcdfc Jul 31, 2018

@devsnek devsnek closed this Jul 31, 2018

@devsnek devsnek merged commit 2bdcdfc into nodejs:master Jul 31, 2018

@devsnek devsnek deleted the devsnek:rename-vm-module branch Jul 31, 2018

@devsnek

This comment has been minimized.

Copy link
Member Author

devsnek commented Jul 31, 2018

landed in 2bdcdfc

targos added a commit that referenced this pull request Aug 1, 2018

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: #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>

@targos targos referenced this pull request Aug 1, 2018

Merged

v10.8.0 proposal #22040

@refack refack referenced this pull request Oct 18, 2018

Merged

build: spawn `make test-ci` with `-j1` #23733

3 of 3 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.