Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
a7f37bc
src: add --heapsnapshot-near-heap-limit option
joyeecheung Oct 21, 2020
894419c
deps: V8: backport 4263f8a5e8e0
bdougie Oct 14, 2020
11eca36
test: add windows and C++ coverage
Oct 17, 2020
15ffed5
v8: implement v8.takeCoverage()
joyeecheung Jun 9, 2020
7bfa872
v8: implement v8.stopCoverage()
joyeecheung Jun 9, 2020
a9c0924
build: add license-builder GitHub Action
bnb Oct 19, 2020
f269c6c
doc: add Installing Node.js header in BUILDING.md
PoojaDurgad Oct 19, 2020
05a888a
doc,esm: document experimental warning removal
aduh95 Oct 22, 2020
564aade
doc,src,test: revise C++ code for linter update
Trott Oct 20, 2020
042d4dd
tools: bump cpplint to 1.5.0
Trott Oct 20, 2020
66da122
tools: refloat 7 Node.js patches to cpplint.py
Trott Oct 9, 2020
6590f8c
doc: update package.json field definitions
MylesBorins Oct 21, 2020
e0a1541
deps: update to [email protected]
guybedford Oct 21, 2020
88eb619
stream: fix duplicate logic in stream destroy
yashLadha Oct 21, 2020
1892532
doc: this prints replaced with this is printed
PoojaDurgad Oct 6, 2020
890b03e
doc: improve text for breakOnSigint
Trott Oct 17, 2020
292b529
doc: add missing link in Node.js 14 Changelog
aduh95 Oct 23, 2020
4b7708a
doc: update console.error example
iyabong Aug 29, 2020
0c5e8ed
test: add additional deprecation warning tests for rmdir recursive
iansu Oct 16, 2020
cfe61b8
http2: remove unsupported %.* specifier
mmomtchev Oct 17, 2020
548f91a
dns: add setLocalAddress to Resolver
daguej Aug 18, 2020
55b7a6c
doc: document changes for `*/promises` alias modules
ExE-Boss Jun 21, 2020
883ed4b
http2: add updateSettings to both http2 servers
Sep 28, 2020
5833007
http2: reinject data received before http2 is attached
mmomtchev Oct 16, 2020
86ed87b
http2: fix reinjection check
mmomtchev Oct 18, 2020
f6aa7c8
doc: add a example code to API doc property
PoojaDurgad Oct 21, 2020
a41e3eb
timers: correct explanation in comment
wjabbour Oct 1, 2020
70c41a8
stream: remove redundant context from comments
yashLadha Oct 21, 2020
368ae95
doc: mark optional parameters in timers.md
vsemozhetbyt Oct 22, 2020
f49afb5
doc: remove stability warning in v8 module doc
Trott Oct 23, 2020
0e9acf8
doc: fix header level in fs.md
ax1 Oct 23, 2020
110ef8a
test: refactor coverage logic
Oct 23, 2020
c0a4fac
doc: fix a typo in CHANGELOG_V12
iShibi Oct 24, 2020
afbe23d
doc: use kbd element in readline doc prose
Trott Oct 21, 2020
34281cd
build: turn off Codecov comments
Oct 25, 2020
7b3743d
doc: modified memory set statement set size
PoojaDurgad Oct 6, 2020
6211ffd
doc: add require statement in the example
PoojaDurgad Oct 8, 2020
01d7c46
Revert "src: ignore GCC -Wcast-function-type for v8.h"
danbev Oct 22, 2020
4b8b5fe
src: use MaybeLocal.ToLocal instead of IsEmpty
danbev Oct 20, 2020
4128eef
src: remove ignore GCC -Wcast-function-type for v8
danbev Oct 23, 2020
c365867
doc: fix typo in BUILDING.md
RaisinTen Oct 26, 2020
52a77db
deps: update acorn to v8.0.4
targos Oct 24, 2020
6513a58
doc: add a subsystems header in pull-requests.md
PoojaDurgad Oct 20, 2020
c2e6a4b
doc: fix _construct example params order
a0viedo Oct 24, 2020
b6b7a3b
http: lazy create IncomingMessage.headers
ronag Sep 21, 2020
221e283
worker: add eventLoopUtilization()
trevnorris Oct 14, 2020
0c17dbd
n-api: revert change to finalization
mhdawson Oct 23, 2020
b07f4a3
doc: consolidate and clarify breakOnSigInt text
Trott Oct 24, 2020
092c6c4
doc,test: update v8 method doc and comment
Trott Oct 25, 2020
76991c0
test: add upstream test cases to urlsearchparam
watilde Oct 25, 2020
3db4354
doc: use case-sensitive in the example
PoojaDurgad Oct 13, 2020
c922578
src: remove ERR prefix in WebCryptoKeyExportStatus
danbev Oct 14, 2020
8169902
child_process: add ChildProcess 'spawn' event
zenflow Sep 27, 2020
4e76a3c
doc: update MessagePort documentation for EventTarget inheritance
addaleax Oct 27, 2020
ee15142
tls: allow reading data into a static buffer
puzpuzpuz Oct 22, 2020
8074f69
doc: make small improvements to REPL doc
Trott Oct 26, 2020
438d9de
events: make eventTarget.removeAllListeners() return this
lpinca Oct 26, 2020
f08e2c0
events: make abort_controller event trusted
benjamingr Oct 26, 2020
dd3cbb4
test: add upstream test cases to encoding
watilde Oct 25, 2020
5e8d821
doc: add conditional example for setBreakpoint()
copperwall Oct 26, 2020
afb3e24
tools: add update-npm script
MylesBorins Oct 26, 2020
d291e3a
doc: stabilize packages features
MylesBorins Oct 21, 2020
8958af4
test: add onerror test cases to policy
watilde Oct 25, 2020
20accb0
deps: upgrade to [email protected]
guybedford Oct 29, 2020
31753ec
tools: add msvc /P output to .gitignore
gengjiawen Oct 21, 2020
0580258
doc: fix reference to googletest test fixture
tniessen Oct 26, 2020
abd7c94
crypto: fix webcrypto ECDH JWK import
panva Oct 28, 2020
273e147
build,tools: add lint-js-doc target
aduh95 Oct 19, 2020
a5fa849
build: add vcbuilt test-doc target
aduh95 Oct 19, 2020
8c2b179
doc: recommend test-doc instead of lint-md
aduh95 Oct 19, 2020
79a8fb6
crypto: fixup scrypt regressions
jasnell Oct 26, 2020
b1e531a
lib: use primordials when calling methods of Error
aduh95 Oct 27, 2020
4447ff1
build,tools: gitHub Actions: use Node.js Fermium
aduh95 Oct 27, 2020
c14889b
doc: move ronkorving to emeritus
Trott Oct 27, 2020
9703219
doc: fix a typo in CHANGELOG_V15
tnir Oct 26, 2020
de3dcd7
test: fix reference to WPT testharness.js
tniessen Oct 26, 2020
d95013f
assert,repl: enable ecmaVersion 2021 in acorn parser
targos Oct 27, 2020
0f5a8c5
module: runtime deprecate subpath folder mappings
guybedford Oct 22, 2020
7691b67
test: mark test-http2-respond-file-error-pipe-offset flaky
MylesBorins Oct 30, 2020
d16e2fa
n-api: napi_make_callback emit async init with resource of async_context
legendecas Oct 6, 2020
102d7df
zlib: test BrotliCompress throws invalid arg value
RaisinTen Oct 27, 2020
830b789
test: mark test-worker-eventlooputil flaky
MylesBorins Oct 30, 2020
337bfcf
doc: add on statement in the APIs docs
PoojaDurgad Oct 12, 2020
644c416
crypto: rename check to createJob
danbev Oct 29, 2020
66ad4be
test: add test to fs/promises setImmediate
tyankatsu0105 Oct 28, 2020
b38a43d
lib: create diagnostics_channel module
Qard Aug 21, 2020
f861733
http: report request start and end with diagnostics_channel
Qard Sep 8, 2020
d20b318
tools: update ESLint to 7.12.0
cjihrig Oct 25, 2020
a07d1af
tools: update ESLint to 7.12.1
cjihrig Oct 27, 2020
1303a1f
deps: update to [email protected]
guybedford Oct 31, 2020
d2f574b
lib: let abort_controller target be EventTarget
watilde Oct 30, 2020
da612df
test: integrate abort_controller tests from wpt
watilde Oct 30, 2020
4899998
doc: move bnoordhuis to emeritus
bnoordhuis Oct 3, 2020
0ac4a6a
doc: update crypto.createSecretKey history
ben-turner Oct 29, 2020
3955ccd
tools: bump cpplint to 1.5.1
Trott Oct 29, 2020
c09fdba
tools: refloat 7 Node.js patches to cpplint.py
Trott Oct 9, 2020
5cb77f2
deps: upgrade to [email protected]
guybedford Nov 2, 2020
55adee0
deps: upgrade npm to 7.0.7
lpinca Nov 1, 2020
b11c737
build: fix lint-js-fix target
aduh95 Nov 2, 2020
7c8b5e5
errors: do not call resolve on URLs with schemes
Oct 31, 2020
eb55462
doc: adjust table alignment for remark v13
nschonni Oct 14, 2020
59b36af
doc: disable no-undefined-references workarounds
nschonni Oct 14, 2020
c5b9422
doc: temporarily disable list-item-bullet-indent
nschonni Oct 14, 2020
7937fbe
doc: update tables in README files for linting changes
Trott Nov 3, 2020
fd027cd
tools: bump remark-lint-preset-node to 2.0.0
Trott Nov 1, 2020
d3f1cde
deps: upgrade npm to 7.0.8
MylesBorins Nov 4, 2020
1cdfaa8
events: add a few tests
benjamingr Oct 26, 2020
fb71964
src: remove redundant OpenSSLBuffer
jasnell Oct 15, 2020
9b549c1
benchmark: add startup benchmark for loading public modules
joyeecheung Oct 26, 2020
76ebae4
benchmark: make the benchmark tool work with Node 10
joyeecheung Oct 26, 2020
231af88
test: correct test-worker-eventlooputil
Flarna Oct 31, 2020
5d61e3d
test: add missing ref comments to parallel.status
Trott Oct 31, 2020
2868f52
stream: fix regression on duplex end
mmomtchev Nov 3, 2020
0ebf44b
crypto: pass empty passphrases to OpenSSL properly
tniessen Nov 1, 2020
2291e07
2020-11-04, Version 15.1.0 (Current)
targos Nov 3, 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
lib: let abort_controller target be EventTarget
The AbortController abort event should have EventTarget as a target
property of the argument event.

PR-URL: #35869
Refs: https://github.com/web-platform-tests/wpt/blob/master/dom/abort/event.any.js
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
  • Loading branch information
watilde authored and targos committed Nov 3, 2020
commit d2f574b5be9d095fbff6f60fd1673e20c071b7f2
5 changes: 2 additions & 3 deletions lib/internal/abort_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const {
} = primordials;

const {
defineEventHandler,
EventTarget,
Event,
kTrustEvent
Expand Down Expand Up @@ -53,9 +54,6 @@ function abortSignal(signal) {
const event = new Event('abort', {
[kTrustEvent]: true
});
if (typeof signal.onabort === 'function') {
signal.onabort(event);
}
signal.dispatchEvent(event);
}

Expand All @@ -67,6 +65,7 @@ class AbortController {
constructor() {
this[kSignal] = new AbortSignal();
emitExperimentalWarning('AbortController');
defineEventHandler(this[kSignal], 'abort');
}

get signal() { return this[kSignal]; }
Expand Down
5 changes: 2 additions & 3 deletions lib/internal/event_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,13 @@ class EventTarget {
}
return event;
};
if (event !== undefined)
event[kTarget] = this;

const root = this[kEvents].get(type);
if (root === undefined || root.next === undefined)
return true;

if (event !== undefined)
event[kTarget] = this;

let handler = root.next;
let next;

Expand Down