This repository was archived by the owner on Oct 15, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 340
Merge nodejs/master #321
Merged
Merged
Merge nodejs/master #321
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3d0ef56
inspector, test: Fix test bug detected by Coverity
d102769
doc: mention rebasing of v?.x-staging post release
addaleax 9a655e9
stream: fix `undefined` in Readable object mode
addaleax 3e18c49
n-api: avoid crash in napi_escape_scope()
mhdawson 259466c
doc: fix nits in guides/using-internal-errors.md
vsemozhetbyt 2a46e57
doc: add missing zlib link to stream API docs
Rob--W 3e17884
errors: improve ERR_INVALID_ARG_TYPE
BridgeAR 3326b07
Merge nodejs/master
chakrabot 53b8790
n-api: removed `napi_status_last` usage
kunalspathak ffa055e
test: skip a check in test_handle_scope
kunalspathak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| 'use strict'; | ||
| const common = require('../common'); | ||
| const assert = require('assert'); | ||
| const { Readable, Writable, Transform } = require('stream'); | ||
|
|
||
| { | ||
| const stream = new Readable({ | ||
| objectMode: true, | ||
| read: common.mustCall(() => { | ||
| stream.push(undefined); | ||
| stream.push(null); | ||
| }) | ||
| }); | ||
|
|
||
| stream.on('data', common.mustCall((chunk) => { | ||
| assert.strictEqual(chunk, undefined); | ||
| })); | ||
| } | ||
|
|
||
| { | ||
| const stream = new Writable({ | ||
| objectMode: true, | ||
| write: common.mustCall((chunk) => { | ||
| assert.strictEqual(chunk, undefined); | ||
| }) | ||
| }); | ||
|
|
||
| stream.write(undefined); | ||
| } | ||
|
|
||
| { | ||
| const stream = new Transform({ | ||
| objectMode: true, | ||
| transform: common.mustCall((chunk) => { | ||
| stream.push(chunk); | ||
| }) | ||
| }); | ||
|
|
||
| stream.on('data', common.mustCall((chunk) => { | ||
| assert.strictEqual(chunk, undefined); | ||
| })); | ||
|
|
||
| stream.write(undefined); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an upstream PR to eliminate
node_internal.hfromnode_api.h, we should probably avoid taking any further dependency on it.nodejs/node#13892
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although taking another look it seems like there's some discussion ongoing, so we can leave this for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, i just adopted this changes from
node_api.cc.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that PR was closed now and we're going a different direction. LGTM as is.