Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: backport 6d32be2 from v8's upstream #2916

Closed
wants to merge 1 commit into from

Conversation

targos
Copy link
Member

@targos targos commented Sep 16, 2015

Original commit message:

[es6] Bound function name

Instead of updating the SharedFuntionInfo set the name property on
the function directly.

BUG=v8:4278
LOG=N
R=verwaest@chromium.org, littledan@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1227523003

Cr-Commit-Position: refs/heads/master@{#29558}

Fixes: #2754

/cc @rvagg @nodejs/v8

Original commit message:

    [es6] Bound function name

    Instead of updating the SharedFuntionInfo set the name property on
    the function directly.

    BUG=v8:4278
    LOG=N
    R=verwaest@chromium.org, littledan@chromium.org
    CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel

    Review URL: https://codereview.chromium.org/1227523003

    Cr-Commit-Position: refs/heads/master@{nodejs#29558}

Fixes: nodejs#2754
@targos targos added the v8 engine Issues and PRs related to the V8 dependency. label Sep 16, 2015
@wraithan
Copy link

This fixes that example @lykkin gave in #2754:

Input:

function fn() {}

var b = fn.bind(null)
process._rawDebug('_rawDebug:',  b.name)
console.log('console.log:', b.name)

fn.bind(null)
process._rawDebug('_rawDebug:', b.name)
console.log('console.log:', b.name)

Output:

_rawDebug: bound fn
console.log: bound fn
_rawDebug: bound fn
console.log: bound fn

@indutny
Copy link
Member

indutny commented Sep 16, 2015

LGTM

@bnoordhuis
Copy link
Member

LGTM. Anyone know why the two .toString() checks were removed rather than updated?

@trevnorris
Copy link
Contributor

LGTM

@targos
Copy link
Member Author

targos commented Sep 16, 2015

@Fishrock123
Copy link
Contributor

@Fishrock123
Copy link
Contributor

CI seems fine. cc @targos / @indutny

@indutny
Copy link
Member

indutny commented Sep 17, 2015

Let's land this!

targos added a commit that referenced this pull request Sep 17, 2015
Original commit message:

    [es6] Bound function name

    Instead of updating the SharedFuntionInfo set the name property on
    the function directly.

    BUG=v8:4278
    LOG=N
    R=verwaest@chromium.org, littledan@chromium.org
    CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel

    Review URL: https://codereview.chromium.org/1227523003

    Cr-Commit-Position: refs/heads/master@{#29558}

Fixes: #2754
PR-URL: #2916
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@indutny
Copy link
Member

indutny commented Sep 17, 2015

Landed in d7da617, thank you!

@indutny indutny closed this Sep 17, 2015
Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request Sep 17, 2015
Original commit message:

    [es6] Bound function name

    Instead of updating the SharedFuntionInfo set the name property on
    the function directly.

    BUG=v8:4278
    LOG=N
    R=verwaest@chromium.org, littledan@chromium.org
    CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel

    Review URL: https://codereview.chromium.org/1227523003

    Cr-Commit-Position: refs/heads/master@{nodejs#29558}

Fixes: nodejs#2754
PR-URL: nodejs#2916
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@targos targos deleted the v8-bind branch September 17, 2015 04:42
@rvagg rvagg mentioned this pull request Sep 22, 2015
@MylesBorins
Copy link
Contributor

landed in lts-v4.x-staging as 96670eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants