0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/test/cctest
Anna Henningsen 4286dcf17f
src: refactor Environment::GetCurrent() usage
Make `Environment::GetCurrent()` return `nullptr` if the current
`Context` is not a Node.js context, and for the relevant usage of
this function, either:

- Switch to the better `GetCurrent(args)` variant
- Turn functions in to no-ops where it makes sense
- Make it a `CHECK`, i.e. an API requirement, where it make sense
- Leave a `TODO` comment for verifying what, if anything, is to be done

PR-URL: https://github.com/nodejs/node/pull/22819
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2018-09-17 17:20:27 +02:00
..
node_test_fixture.cc test: use aliases for smart pointers in fixture 2018-06-27 05:19:56 +02:00
node_test_fixture.h src: add InitializeV8Platform function 2018-09-07 21:07:29 +02:00
test_aliased_buffer.cc src: replace template<template < 2018-05-14 18:09:23 +02:00
test_base64.cc
test_environment.cc src: refactor Environment::GetCurrent() usage 2018-09-17 17:20:27 +02:00
test_inspector_socket_server.cc inspector: split main thread interface from transport 2018-07-13 23:42:50 +02:00
test_inspector_socket.cc
test_node_postmortem_metadata.cc src: rename PROVIDER_FSREQWRAP to PROVIDER_FSREQCALLBACK 2018-08-01 15:07:14 -04:00
test_platform.cc
test_traced_value.cc trace_events: add traced_value.cc/traced_value.h 2018-07-12 10:32:26 -07:00
test_url.cc inspector: implemented V8InspectorClient::resourceNameToUrl 2018-09-14 08:32:08 -07:00
test_util.cc