deps: cherry-pick 39d546a from upstream v8#20016
deps: cherry-pick 39d546a from upstream v8#20016devsnek wants to merge 2 commits intonodejs:masterfrom
Conversation
deps/v8/AUTHORS
Outdated
There was a problem hiding this comment.
Congrats on your first V8 commit. :-)
|
CI https://ci.nodejs.org/job/node-test-pull-request/14271/ what do i put in the node-test-commit-v8-linux config |
|
Your username and branch name. There's a way to specify the PR but I always forget the syntax - it's something like |
|
CI-v8 attempted: https://ci.nodejs.org/job/node-test-commit-v8-linux/1324/ |
|
@devsnek is this ABI breaking? |
|
@MylesBorins it just adds a new method to v8::Value, that's not "breaking" right? i'll add semver-minor for new util.types method i suppose |
ff9eba9 to
d870fad
Compare
|
one last ci after rebase https://ci.nodejs.org/job/node-test-pull-request/14303/ |
|
Please add |
Original commit message:
[api] introduce v8::Value::IsModuleNamespaceObject
This allows an embedder to check if a Value is a module namespace object.
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
Reviewed-on: https://chromium-review.googlesource.com/1011762
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{nodejs#52597}
Refs: v8/v8@39d546a
|
@targos done, imma just wait for these tests to finish before pushing |
|
failure unrelated, another ChannelClosedException |
d870fad to
8daa1c9
Compare
Original commit message:
[api] introduce v8::Value::IsModuleNamespaceObject
This allows an embedder to check if a Value is a module namespace object.
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
Reviewed-on: https://chromium-review.googlesource.com/1011762
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52597}
Refs: v8/v8@39d546a
PR-URL: #20016
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #20016 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
landed as 73f13ba...c974f1b |
Original commit message:
[api] introduce v8::Value::IsModuleNamespaceObject
This allows an embedder to check if a Value is a module namespace object.
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
Reviewed-on: https://chromium-review.googlesource.com/1011762
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{nodejs#52597}
Refs: v8/v8@39d546a
PR-URL: nodejs#20016
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Original commit message:
[api] introduce v8::Value::IsModuleNamespaceObject
This allows an embedder to check if a Value is a module namespace object.
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
Reviewed-on: https://chromium-review.googlesource.com/1011762
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{nodejs#52597}
Refs: v8/v8@39d546a
PR-URL: nodejs#20016
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: nodejs#20016 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
Probably should have only exposed this with |
|
@jdalton this has now landed in V8 so we can't really flag the feature. We could flag the util, do you think that makes sense? |
|
Yep, makes sense. l'm talking about the exposed user facing bit not v8 internals bit. |
|
I think it should just be documented, not flagged. there is nothing experimental about this api. |
|
It's only useful with experimental modules or experimental vm-modules. |
|
without esm landing, vm.Module and c++ add-ons exist which can both produce module namespaces. I can open a pr to add the docs during my lunch break later today. |
|
The A flag, any flag, is fine... just probably not public unflagged at the moment. Update: Related PR doc which makes it officially exposed is #20616. It's marked as |
Original commit message:
[api] introduce v8::Value::IsModuleNamespaceObject
This allows an embedder to check if a Value is a module namespace object.
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
Reviewed-on: https://chromium-review.googlesource.com/1011762
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{nodejs#52597}
Refs: v8/v8@39d546a
PR-URL: nodejs#20016
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Original commit message:
[api] introduce v8::Value::IsModuleNamespaceObject
This allows an embedder to check if a Value is a module namespace object.
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
Reviewed-on: https://chromium-review.googlesource.com/1011762
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52597}
Refs: v8/v8@39d546a
PR-URL: #20016
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Original commit message:
[api] introduce v8::Value::IsModuleNamespaceObject
This allows an embedder to check if a Value is a module namespace object.
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: Idffceff451dd5f5c6a53d4cb3ce02c1c2c5b653c
Reviewed-on: https://chromium-review.googlesource.com/1011762
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52597}
Refs: v8/v8@39d546a
PR-URL: #20016
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
opting to not land on v8.x Please feel free to change the label... this may make sense to include in a larger backport of modules / vm support fo 8.x |
Two commits here:
[api] introduce v8::Value::IsModuleNamespaceObject(v8/v8@39d546a)util: introduce isModuleNamespaceObject(ff9eba9e4dfd99f5d5d3f4963e3703a3128cc6f0)Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes