0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00
nodejs/test
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
..
abort test: removed extraneous argument 's' 2018-11-08 21:41:29 -08:00
addons test: fix NewFromUtf8 compiler warning 2018-11-09 21:26:31 -08:00
addons-napi test: fix order in assert.strictEqual to actual, expected 2018-11-09 20:41:29 -08:00
async-hooks
cctest src,test: add public wrapper for Environment::GetCurrent 2018-10-20 17:47:43 -04:00
code-cache test: run code cache test by default and test generator 2018-10-30 14:38:27 +08:00
common test: initialize test/wpt to run URL and console .js tests 2018-11-09 20:27:21 +08:00
doctool test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
es-module
fixtures test: use URL fixtures under test/fixtures/wpt/url/resources 2018-11-09 20:27:20 +08:00
internet test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
known_issues test: fix flaky test-vm-timeout-escape-nexttick 2018-11-09 04:50:14 -08:00
message test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
parallel test: change arguments order in strictEqual 2018-11-09 21:15:26 -08:00
pseudo-tty
pummel test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
sequential test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
testpy
tick-processor
v8-updates
wpt test: initialize test/wpt to run URL and console .js tests 2018-11-09 20:27:21 +08:00
.eslintrc.yaml
README.md
root.status

Node.js Core Tests

This directory contains code and data used to test the Node.js implementation.

For a detailed guide on how to write tests in this directory, see the guide on writing tests.

On how to run tests in this directory, see the contributing guide.

For the tests to successfully run on Windows, Node.js has to be checked out from GitHub with the autocrlf git config flag set to true.

Test Directories

Directory Runs on CI Purpose
abort Yes Tests for when the --abort-on-uncaught-exception flag is used.
addons Yes Tests for addon functionality along with some tests that require an addon to function properly.
addons-napi Yes Tests for n-api functionality.
async-hooks Yes Tests for async_hooks functionality.
cctest Yes C++ tests that are run as part of the build process.
code-cache No Tests for a Node.js binary compiled with V8 code cache.
common Common modules shared among many tests. Documentation
doctool Yes Tests for the documentation generator.
es-module Yes Test ESM module loading.
fixtures Test fixtures used in various tests throughout the test suite.
internet No Tests that make real outbound connections (mainly networking related modules). Tests for networking related modules may also be present in other directories, but those tests do not make outbound connections.
known_issues Yes Tests reproducing known issues within the system. All tests inside of this directory are expected to fail consistently. If a test doesn't fail on certain platforms, those should be skipped via known_issues.status.
message Yes Tests for messages that are output for various conditions (console.log, error messages etc.)
parallel Yes Various tests that are able to be run in parallel.
pseudo-tty Yes Tests that require stdin/stdout/stderr to be a TTY.
pummel No Various tests for various modules / system functionality operating under load.
sequential Yes Various tests that are run sequentially.
testpy Test configuration utility used by various test suites.
tick-processor No Tests for the V8 tick processor integration. The tests are for the logic in lib/internal/v8_prof_processor.js and lib/internal/v8_prof_polyfill.js. The tests confirm that the profile processor packages the correct set of scripts from V8 and introduces the correct platform specific logic.
v8-updates No Tests for V8 performance integration.