GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: fix warning in node_messaging by ZYSzys · Pull Request #26682 · nodejs/node

Conversation

@ZYSzys

@ZYSzys ZYSzys commented Mar 15, 2019

Copy link
Copy Markdown
Member

Got some warning when building Node.js from newest master.

So fixed by:

  • Use WasmModuleObject instead of WasmCompiledModule.
  • Use IsDetachable() instead of IsNeuterable.
  • Use Detach() instead of Neuter.
In file included from /Users/zyszys/Projects/node/out/Release/obj/gen/node_javascript.cc:3:
In file included from ../src/node_internals.h:27:
In file included from ../src/env-inl.h:35:
In file included from ../src/node_worker.h:7:
../src/node_messaging.h:52:48: warning: 'WasmCompiledModule' is deprecated: Use WasmModuleObject [-Wdeprecated-declarations]
  uint32_t AddWASMModule(v8::WasmCompiledModule::TransferrableModule&& mod);
                                               ^
../deps/v8/include/v8.h:4444:1: note: 'WasmCompiledModule' has been explicitly marked deprecated here
V8_DEPRECATED("Use WasmModuleObject",
^
../deps/v8/include/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from /Users/zyszys/Projects/node/out/Release/obj/gen/node_javascript.cc:3:
In file included from ../src/node_internals.h:27:
In file included from ../src/env-inl.h:35:
In file included from ../src/node_worker.h:7:
../src/node_messaging.h:71:37: warning: 'WasmCompiledModule' is deprecated: Use WasmModuleObject [-Wdeprecated-declarations]
  std::vector<v8::WasmCompiledModule::TransferrableModule> wasm_modules_;
                                    ^
../deps/v8/include/v8.h:4444:1: note: 'WasmCompiledModule' has been explicitly marked deprecated here
V8_DEPRECATED("Use WasmModuleObject",
^
../deps/v8/include/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
2 warnings generated.
../src/node_messaging.cc:73:14: warning: 'WasmCompiledModule' is deprecated: Use
      WasmModuleObject [-Wdeprecated-declarations]
  MaybeLocal<WasmCompiledModule> GetWasmModuleFromId(
             ^
../deps/v8/include/v8.h:4444:1: note: 'WasmCompiledModule' has been explicitly marked
      deprecated here
V8_DEPRECATED("Use WasmModuleObject",
^
../deps/v8/include/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_messaging.cc:238:31: warning: 'WasmCompiledModule' is deprecated: Use
      WasmModuleObject [-Wdeprecated-declarations]
      Isolate* isolate, Local<WasmCompiledModule> module) override {
                              ^
../deps/v8/include/v8.h:4444:1: note: 'WasmCompiledModule' has been explicitly marked
      deprecated here
V8_DEPRECATED("Use WasmModuleObject",
^
../deps/v8/include/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_messaging.cc:305:18: warning: 'IsNeuterable' is deprecated: Use
      IsDetachable() instead. [-Wdeprecated-declarations]
        if (!ab->IsNeuterable() || ab->IsExternal() ||
                 ^
../deps/v8/include/v8.h:4723:3: note: 'IsNeuterable' has been explicitly marked
      deprecated here
  V8_DEPRECATE_SOON("Use IsDetachable() instead.",
  ^
../deps/v8/include/v8config.h:322:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_messaging.cc:371:9: warning: 'Neuter' is deprecated: Use Detach() instead.
      [-Wdeprecated-declarations]
    ab->Neuter();
        ^
../deps/v8/include/v8.h:4737:3: note: 'Neuter' has been explicitly marked deprecated
      here
  V8_DEPRECATE_SOON("Use Detach() instead.", inline void Neuter()) { Detach(); }
  ^
../deps/v8/include/v8config.h:322:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gengjiawen reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@ZYSzys
src: fix warning in node_messaging
7e1c40b
@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Mar 15, 2019
addaleax
addaleax approved these changes Mar 15, 2019
View reviewed changes
@addaleax

addaleax commented Mar 15, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I’d be okay with fast-tracking this. (:+1: this comment if you agree.)

mhdawson and ZYSzys reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax

addaleax commented Mar 15, 2019

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax added the fast-track PRs proposed for a shorter-than-standard waiting period before landing. label Mar 15, 2019
mhdawson
mhdawson approved these changes Mar 15, 2019
View reviewed changes

@mhdawson mhdawson left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jasnell
jasnell approved these changes Mar 15, 2019
View reviewed changes
@addaleax

addaleax commented Mar 15, 2019

Copy link
Copy Markdown
Member

Landed in 0752a18

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax closed this Mar 15, 2019
addaleax pushed a commit that referenced this pull request Mar 15, 2019
@ZYSzys @addaleax
src: fix warning in node_messaging
0752a18
PR-URL: #26682
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@ZYSzys
ZYSzys deleted the src-node-messaging branch March 15, 2019 15:04
@targos targos added dont-land-on-v6.x labels Mar 27, 2019
This was referenced Apr 23, 2019
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-android-nodejs#302
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-nodejs#275
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-nodejs#276
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-android-nodejs#303
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-nodejs#277
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-android-nodejs#304
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-nodejs#278
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-android-nodejs#305
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-nodejs#279
Closed
2019-04-23 Version 12.0.0 (Current) @BethGriggs beevelop/docker-android-nodejs#306
Closed
@kissofire kissofire mentioned this pull request Mar 7, 2021
[Snyk] Fix for 1 vulnerabilities kissofire/node#28
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Mar 7, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#19
Open
@ron-a20 ron-a20 mentioned this pull request Mar 8, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#26
Open
@Rednickle Rednickle mentioned this pull request Mar 8, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#15
Open
This was referenced Mar 11, 2021
[Snyk] Fix for 6 vulnerabilities Dmarch28/node#8
Open
[Snyk] Fix for 6 vulnerabilities Dmarch28/node#9
Open
This was referenced May 25, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#21
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#22
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.2.13 to 2.6.31 kissofire/node#35
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 sitedata/node#25
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.2.13 to 2.6.31 meghasfdc/node#35
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#33
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 baby636/node#10
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#22
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#25
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 137717unity/node#26
Open
This was referenced Apr 7, 2022
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#61
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#47
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 137717unity/node#52
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#53
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#54
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 baby636/node#49
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 molllyn1/node#43
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 wedataintelligence/node#28
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 turkdevops/node#364
Closed
@snyk-bot snyk-bot mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#89
Open
@wedataintelligence wedataintelligence mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#73
Open
@snyk-bot snyk-bot mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities kissofire/node#94
Open
@molllyn1 molllyn1 mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities molllyn1/node#76
Open
@snyk-bot snyk-bot mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities 137717unity/node#93
Open
@baby636 baby636 mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities baby636/node#88
Open
This was referenced Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities ron-a20/node#93
Open
[Snyk] Fix for 1 vulnerabilities Rednickle/node-1#70
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@addaleax addaleax addaleax approved these changes
+1 more reviewer
@mhdawson mhdawson mhdawson approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. fast-track PRs proposed for a shorter-than-standard waiting period before landing.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@ZYSzys @addaleax @jasnell @mhdawson @targos @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.