Skip to content

src: emit warnings from V8 - #24365

Merged
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:feature/v8-warnings
Nov 16, 2018
Merged

src: emit warnings from V8#24365
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:feature/v8-warnings

Conversation

@devsnek

@devsnekdevsnek commented Nov 14, 2018

Copy link
Copy Markdown
Member

Currently the only place V8 does this is asm.js compilation:

functionAsmModule(){'use asm';functionadd(a,b){a=a|0;b=b|0;// should be `return (a + b) | 0;`returna+b;// (node:18940) V8: test.js:9 Invalid asm.js: Invalid return type}return{add: add};}

In chromium:

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

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Nov 14, 2018
@devsnekdevsnek added the v8 engine Issues and PRs related to the V8 dependency. label Nov 14, 2018
@targos

Copy link
Copy Markdown
Member

Is it testable? Maybe with a message test?

@addaleaxaddaleax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding the test case from the PR description as a test here?

Comment threadsrc/node.cc Outdated
@devsnek

Copy link
Copy Markdown
MemberAuthor

@targos@addaleax tests added 👍

@devsnek

Copy link
Copy Markdown
MemberAuthor

@refackrefack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment threadsrc/node.cc Outdated
Comment threadsrc/node.cc Outdated
@refackrefack added the wasm Issues and PRs related to WebAssembly. label Nov 14, 2018
@devsnekdevsnek removed the wasm Issues and PRs related to WebAssembly. label Nov 14, 2018
@refack

Copy link
Copy Markdown
Contributor

refack added the wasm label

I know it's not wasm but it's the most relevant label.

@joyeecheungjoyeecheung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be even better if ProcessEmitWarningGeneric is less generic on the C++ side and we can just do the overload in JS...but anyway LGTM

(off-topic: we have a wasm label? AND a asm.js label? and they are both green?)

Comment threadsrc/node.cc Outdated
@refack

Copy link
Copy Markdown
Contributor

a wasm label? AND a asm.js label? and they are both green

The asm.js is brand new. And like their subjects, if you look from a distance they look the same ;)

Comment threadsrc/node.cc Outdated
Comment threadsrc/node.cc Outdated
Comment threadsrc/node.cc Outdated
Comment threadsrc/node.cc Outdated
@devsnek

Copy link
Copy Markdown
MemberAuthor

CI https://ci.nodejs.org/job/node-test-pull-request/18619/

PR-URL: nodejs#24365
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@devsnek
devsnek merged commit e1aa730 into nodejs:masterNov 16, 2018
@devsnek
devsnek deleted the feature/v8-warnings branch November 16, 2018 15:19
targos pushed a commit that referenced this pull request Nov 18, 2018
PR-URL: #24365
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
rvagg pushed a commit that referenced this pull request Nov 28, 2018
PR-URL: #24365
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@BridgeARBridgeAR mentioned this pull request Dec 5, 2018
4 tasks
@codebytere

codebytere commented Jan 12, 2019

Copy link
Copy Markdown
Member

@devsnek do you think that this can/should be backported to v10.x? I added the label but feel free to remove!

nodejs-github-bot pushed a commit that referenced this pull request May 25, 2026
asm.js validation is deprecated and disabled by default in V8,
so there's no longer a stable user-reachable trigger for
`v8::Isolate::kMessageWarning`. Remove the test.
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #63469Fixes: nodejs/node-v8#310
Refs: https://issues.chromium.org/issues/510487707
Refs: #24365
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
aduh95 pushed a commit that referenced this pull request May 27, 2026
asm.js validation is deprecated and disabled by default in V8,
so there's no longer a stable user-reachable trigger for
`v8::Isolate::kMessageWarning`. Remove the test.
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #63469Fixes: nodejs/node-v8#310
Refs: https://issues.chromium.org/issues/510487707
Refs: #24365
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
sxa pushed a commit to sxa/node that referenced this pull request Jun 18, 2026
asm.js validation is deprecated and disabled by default in V8,
so there's no longer a stable user-reachable trigger for
`v8::Isolate::kMessageWarning`. Remove the test.
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: nodejs#63469Fixes: nodejs/node-v8#310
Refs: https://issues.chromium.org/issues/510487707
Refs: nodejs#24365
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
sxa pushed a commit that referenced this pull request Jun 18, 2026
asm.js validation is deprecated and disabled by default in V8,
so there's no longer a stable user-reachable trigger for
`v8::Isolate::kMessageWarning`. Remove the test.
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #63469Fixes: nodejs/node-v8#310
Refs: https://issues.chromium.org/issues/510487707
Refs: #24365
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7832184
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.v8 engineIssues and PRs related to the V8 dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@devsnek@nodejs-github-bot@targos@refack@codebytere@bnoordhuis@thefourtheye@addaleax@cjihrig@joyeecheung