Skip to content

internal: fix TypeError in v8-polyfill - #8863

Closed
geek wants to merge 1 commit into
nodejs:masterfrom
geek:fix-v8-polyfill
Closed

internal: fix TypeError in v8-polyfill#8863
geek wants to merge 1 commit into
nodejs:masterfrom
geek:fix-v8-polyfill

Conversation

@geek

@geekgeek commented Sep 30, 2016

Copy link
Copy Markdown
Member
Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

v8 profile processor

Description of change

readline() can return a boolean, in which case, line 90 will throw an exception. This change addresses the issue by defaulting to a string in readline() instead of returning false.

@nodejs-github-botnodejs-github-bot added the tools Issues and PRs related to the tools directory. label Sep 30, 2016
@mscdexmscdex added process Issues and PRs related to the process subsystem. and removed tools Issues and PRs related to the tools directory. labels Sep 30, 2016

@jasnelljasnell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasnell

Copy link
Copy Markdown
Member

@bnoordhuisbnoordhuis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd change the return false in readline() to return '', that way future call sites won't run into the same issue.

If other collaborators think this is fine though, I'm fine with it too.

@geek

geek commented Oct 4, 2016

Copy link
Copy Markdown
MemberAuthor

@bnoordhuis fixed

@bnoordhuis

Copy link
Copy Markdown
Member

@geek

geek commented Oct 5, 2016

Copy link
Copy Markdown
MemberAuthor

This was the failure on AIX

https://ci.nodejs.org/job/node-test-commit-aix/1300/

length differs.
expect=2
actual=0
patterns:
pattern = ^hello\ world\ 1$
pattern = ^hello\ world\ 2$
outlines:
not ok 1219 pseudo-tty/test-tty-wrap

I reran the job and it succeeded:

https://ci.nodejs.org/job/node-test-commit-aix/1305/

jasnell pushed a commit that referenced this pull request Oct 6, 2016
PR-URL: #8863
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@jasnell

Copy link
Copy Markdown
Member

Landed in 47d1588

@jasnelljasnell closed this Oct 6, 2016
@geek
geek deleted the fix-v8-polyfill branch October 6, 2016 18:21
jasnell pushed a commit that referenced this pull request Oct 6, 2016
PR-URL: #8863
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@MylesBorins

Copy link
Copy Markdown
Contributor

added lts watch as this lands on v4.x let me know if it should not land

@jasnell

Copy link
Copy Markdown
Member

there's likely no harm in landing it.

Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
PR-URL: #8863
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 18, 2016
PR-URL: #8863
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Nov 22, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

processIssues and PRs related to the process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@geek@jasnell@bnoordhuis@MylesBorins@targos@cjihrig@mscdex@nodejs-github-bot