Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
8ca8042
test: fix flaky test-net-connect-econnrefused
Trott Jul 13, 2020
f60e58b
doc,tools: syntax highlight api docs at compile-time
tolmasky Jun 30, 2020
c9b652f
vm: add tests for function declarations using [[DefineOwnProperty]]
ExE-Boss Jun 23, 2020
c28453a
doc: fix typo in assert.md
pastelmind Jul 12, 2020
3d4f608
stream: rename opts to options
rickyes Jul 13, 2020
346c201
doc: strengthen wording about fs.access() misuse
Trott Jul 14, 2020
ec1393d
test: fix test-net-pingpong pummel test for non-IPv6 hosts
Trott Jul 14, 2020
668632d
net: allow wider regex in interface name
Jul 14, 2020
699da05
test: remove common.localhostIPv6
Trott Jul 14, 2020
77542a4
test: do not write to fixtures dir in test-watch-file
Trott Jul 15, 2020
50fd2b9
doc: strengthen suggestion in errors.md
Trott Jul 16, 2020
10962c8
doc: introduce a triager role
gireeshpunathil Jul 10, 2020
1083073
doc: add changes metadata to TLS newSession event
tniessen Jul 10, 2020
aef41e5
src: refactor CertCbDone to avoid goto statement
tniessen Jul 12, 2020
e9c7722
tls: remove setMaxSendFragment guards
tniessen Jul 12, 2020
9d40af5
src: avoid strcmp in SecureContext::Init
tniessen Jul 12, 2020
4a828c6
doc: use correct identifier for callback argument
Trott Jul 17, 2020
30da332
test: fix flaky test-heapdump-http2
Trott Jul 17, 2020
39894f8
doc: add release key for Richard Lau
richardlau Jul 16, 2020
74da2c4
util: improve getStringWidth performance
BridgeAR May 31, 2020
5c94358
src: allow setting a dir for all diagnostic output
May 27, 2020
82fad58
lib: simplify assignment
sapics Jun 4, 2020
d67a2b8
doc: fix typos in n-api, tls and worker_threads
jucke Jul 18, 2020
905e3d1
doc: fix line length in worker_threads.md
jucke Jul 18, 2020
631dd21
doc: mark Node.js 13 as End-of-Life
aduh95 Jul 20, 2020
29ad6fb
doc: add statement of purpose to documentation style guide
Trott Jul 18, 2020
f4d61c7
tools: update ESLint to 7.5.0
cjihrig Jul 18, 2020
02ae6d6
dgram: add IPv6 scope id suffix to received udp6 dgrams
pekkanikander Jul 26, 2017
4b4eb5f
doc: add rexagod to collaborators
rexagod Jul 21, 2020
bd9ab00
src: allow preventing SetPromiseRejectCallback
codebytere Jul 16, 2020
3fda3d4
build: don't run Actions on non-master pushes
codebytere Jul 21, 2020
d6ee1fd
src: do not crash if ToggleAsyncHook fails during termination
addaleax Jul 14, 2020
eecb92c
test: fix flaky test-watch-file
Trott Jul 18, 2020
252f376
zlib: switch to lazy init for zlib streams
puzpuzpuz Jun 23, 2020
a3c9f75
doc: add HarshithaKP to collaborators
HarshithaKP Jul 18, 2020
7d058a4
doc: add author-ready label ref to onboarding doc
ruyadorno Jul 15, 2020
cd35d00
test: force resigning of app
cjihrig Jul 13, 2020
4e2f5fa
test: fixup worker + source map test
addaleax Jun 25, 2020
1a9138d
test: delete invalid test
addaleax Jun 25, 2020
f4a63f3
doc: add AshCripps to collaborators
Jul 23, 2020
455dd9c
doc: match link text in index to doc headline
Trott Jul 20, 2020
cbe6385
src: remove unused variable in node_file.cc
sapics Jul 11, 2020
e1199af
module: self referential modules in repl or `-r`
dnlup Jul 16, 2020
70f23eb
build: remove test-tarball action for windows + osx
MylesBorins Jul 20, 2020
657f2d7
doc: move ronkorving to emeritus
Trott Jul 22, 2020
92c57b2
doc: move thefourtheye to emeritus
Trott Jul 22, 2020
81eaaa2
test: remove duplicate checks in pummel/test-timers
Trott Jul 22, 2020
bbc7eea
doc: mention triage in GOVERNANCE.md
gireeshpunathil Jul 19, 2020
99a6487
doc: onboarding process extras
gireeshpunathil Jul 21, 2020
3f11ba1
test: fix test-heapdump-zlib
puzpuzpuz Jul 23, 2020
e7c64af
n-api: run all finalizers via SetImmediate()
Jul 15, 2020
2297d74
doc: add Triagers section to table of contents in GOVERNANCE.md
Trott Jul 24, 2020
cc279db
test: remove superfluous check in pummel/test-timers
Trott Jul 23, 2020
9b91467
http: don't write error to socket
ronag Jul 21, 2020
b12211e
src: prefer internal fields in ModuleWrap
addaleax Jul 21, 2020
c05b63d
src: skip weak references for memory tracking
addaleax Jul 21, 2020
050866d
doc: remove breaking-change-helper from onboarding-extras
Trott Jul 23, 2020
37752cd
doc: revise onboarding-extras
Trott Jul 23, 2020
17bca62
doc: use sentence-case for GOVERNANCE.md headers
Trott Jul 24, 2020
cce1f3e
build: don't run test-asan workflow on non-master pushes
richardlau Jul 24, 2020
f7600d5
deps: upgrade npm to 6.14.7
claudiahdz Jul 21, 2020
a4806e2
build: speed up source tarball creation
richardlau Jul 24, 2020
098b193
http2: avoid unnecessary buffer resize
lundibundi Jul 22, 2020
3024927
lib: initialize instance members in class constructors
joyeecheung Jul 14, 2020
c93a898
events: expand NodeEventTarget functionality
addaleax Jun 25, 2020
0aa3809
worker: make MessagePort inherit from EventTarget
addaleax Jun 25, 2020
d90967b
events: re-use the same isTrusted getter
addaleax Jul 21, 2020
e5f3800
Revert "doc: move ronkorving to emeritus"
Trott Jul 24, 2020
dd29889
async_hooks: optimize fast-path promise hook for ALS
puzpuzpuz Jul 25, 2020
d5c8b38
test: add ref comment to test-regress-GH-814
Trott Jul 26, 2020
fced3ce
test: add ref comment to test-regress-GH-814_2
Trott Jul 26, 2020
b24f254
build: add benchmark tests to CI runs
Trott Jul 10, 2020
24e1beb
build: do not run benchmark tests on 'make test'
Trott Jul 20, 2020
358b934
build: fix test-ci-js task in Makefile
Trott Jul 20, 2020
6171265
2020-07-29, Version 14.7.0 (Current)
ruyadorno Jul 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
src: allow preventing SetPromiseRejectCallback
PR-URL: #34387
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
codebytere authored and MylesBorins committed Jul 27, 2020
commit bd9ab00acd9d97d99b181010b619da1de06ccd94
8 changes: 5 additions & 3 deletions src/api/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,11 @@ void SetIsolateMiscHandlers(v8::Isolate* isolate, const IsolateSettings& s) {
s.allow_wasm_code_generation_callback : AllowWasmCodeGenerationCallback;
isolate->SetAllowWasmCodeGenerationCallback(allow_wasm_codegen_cb);

auto* promise_reject_cb = s.promise_reject_callback ?
s.promise_reject_callback : task_queue::PromiseRejectCallback;
isolate->SetPromiseRejectCallback(promise_reject_cb);
if ((s.flags & SHOULD_NOT_SET_PROMISE_REJECTION_CALLBACK) == 0) {
auto* promise_reject_cb = s.promise_reject_callback ?
s.promise_reject_callback : task_queue::PromiseRejectCallback;
isolate->SetPromiseRejectCallback(promise_reject_cb);
}

if (s.flags & DETAILED_SOURCE_POSITIONS_FOR_PROFILING)
v8::CpuProfiler::UseDetailedSourcePositionsForProfiling(isolate);
Expand Down
3 changes: 2 additions & 1 deletion src/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ class NODE_EXTERN MultiIsolatePlatform : public v8::Platform {

enum IsolateSettingsFlags {
MESSAGE_LISTENER_WITH_ERROR_LEVEL = 1 << 0,
DETAILED_SOURCE_POSITIONS_FOR_PROFILING = 1 << 1
DETAILED_SOURCE_POSITIONS_FOR_PROFILING = 1 << 1,
SHOULD_NOT_SET_PROMISE_REJECTION_CALLBACK = 1 << 2
};

struct IsolateSettings {
Expand Down