0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00
nodejs/doc
Daniel Bevenius d58a0c6285 test: fix NewFromUtf8 compiler warning
Currently there are a number of compiler warnings like the following:

../binding.cc:6:41:
warning: 'NewFromUtf8' is deprecated:
Use maybe version [-Wdeprecated-declarations]
  args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world"));
                                        ^
/node/deps/v8/include/v8.h:2883:10:
note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATE_SOON(
         ^
/node/deps/v8/include/v8config.h:341:29:
note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^

This commit updates the code to use the maybe versions.

PR-URL: https://github.com/nodejs/node/pull/24216
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2018-11-09 21:26:31 -08:00
..
api test: fix NewFromUtf8 compiler warning 2018-11-09 21:26:31 -08:00
api_assets doc: Remove 'dnt_helper.js' 2018-09-02 12:47:09 +02:00
changelogs 2018-11-02, Version 11.1.0 (Current) 2018-11-02 13:34:02 +01:00
guides doc: remove legacy WPT integration guide 2018-11-09 20:27:21 +08:00
.eslintrc.yaml tools: lint doc code examples in strict mode 2018-07-06 08:45:34 +03:00
first_timer_badge.png
full-white-stripe.jpg
node.1 doc: edit man page for superfluous "node" usage 2018-11-03 23:54:03 -07:00
offboarding.md doc: add offboarding doc 2018-06-05 15:22:15 -07:00
onboarding-extras.md doc: move upstream information to onboarding doc 2018-06-01 14:01:10 +02:00
onboarding.md doc: update author-ready label terms 2018-10-07 11:58:08 +03:00
osx_installer_logo.png
releases.md meta,doc: ping community about new release 2018-11-05 19:23:42 -08:00
STYLE_GUIDE.md doc: add branding to style guide 2018-10-31 23:26:53 -07:00
template.html doc: remove GA tracking 2018-10-04 07:18:23 +02:00
thin-white-stripe.jpg