GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Computed props are not properly handled · Issue #2507 · nodejs/node

Computed props are not properly handled #2507

New issue
Copy link
New issue
Copy link
Closed
Closed
Computed props are not properly handled#2507
Copy link
Labels
confirmed-bugIssues and PRs for confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.

Description

@lazdmx
lazdmx
opened on Aug 23, 2015
Issue body actions

Repost of microsoft/TypeScript#4419

Seems like this problem is related to v8. Following code (using [email protected])

var prop = 'age'
var val = 42
console.log([{ name: "ivan", [prop]: val }])
console.log({ name: "ivan", [prop]: val })

produces output

[ { name: 'ivan' } ]
{ name: 'ivan', age: 42 }

Activity

Next
  1. Fishrock123
    added
    v8 engineIssues and PRs related to the V8 dependency.
    on Aug 23, 2015
  2. Fishrock123 commented on Aug 23, 2015

    @Fishrock123
    Fishrock123
    on Aug 23, 2015
    Contributor
    More actions

    Weird that the bottom works but the top doesn't. @ofrobots?

  3. mscdex commented on Aug 23, 2015

    @mscdex
    mscdex
    on Aug 23, 2015
    Contributor
    More actions

    FWIW same issue exists in next+1/v8 4.5

  4. silverwind
    changed the title [-]Computed pops are not properly handled[/-] [+]Computed props are not properly handled[/+] on Aug 23, 2015
  5. ofrobots commented on Aug 23, 2015

    @ofrobots
    ofrobots
    on Aug 23, 2015
    Contributor
    More actions

    I see the same behaviour in Chrome 44 and Chrome Canary (V8 4.6). @lazutkin Do you want to open a V8 issue here: https://code.google.com/p/v8/issues/list

  6. lazdmx commented on Aug 23, 2015

    @lazdmx
    lazdmx
    on Aug 23, 2015
    Author
    More actions

    Ok. Will do.

  7. Fishrock123 commented on Aug 23, 2015

    @Fishrock123
    Fishrock123
    on Aug 23, 2015
    Contributor
    More actions

    Closing, nothing io.js itself can do. :)

  8. cjihrig
    closed this as completedon Aug 23, 2015
  9. lazdmx commented on Aug 24, 2015

    @lazdmx
    lazdmx
    on Aug 24, 2015
    Author
    More actions

    Ref: https://code.google.com/p/v8/issues/detail?id=4387

  10. rvagg commented on Aug 24, 2015

    @rvagg
    rvagg
    on Aug 24, 2015
    Member
    More actions

    We're going in to LTS with this version of V8, I hope this isn't going to bite us in a similar way to Array.values() in 0.12, perhaps this should be part of our "Known issues"?

  11. Fishrock123
    added
    confirmed-bugIssues and PRs for confirmed bugs.
    on Aug 24, 2015
  12. Fishrock123 commented on Aug 24, 2015

    @Fishrock123
    Fishrock123
    on Aug 24, 2015
    Contributor
    More actions

    Yeah perhaps we should document it. It's not a thing that perviously existed though (afaik) so I think we're good there.

  13. mgol commented on Aug 25, 2015

    @mgol
    mgol
    on Aug 25, 2015
    Contributor
    More actions

    This seems worrying, especially that it's available by default, not behind a flag. Comments in the V8 issue suggest the fix for that will be a one-liner. I somehow missed that Node 4.0.0 will use v8 4.4, not 4.5 (i.e. the same as io.js 3) but since v8 4.4 will soon lose upstream support perhaps patching this on the Node.js side wouldn't introduce big issues?

  14. rvagg commented on Aug 26, 2015

    @rvagg
    rvagg
    on Aug 26, 2015
    Member
    More actions

    I'd not be opposed to floating a patch on v8 for this when they drop support for 4.4 upstream because we're going to have to be supporting this version for some time and will be adding our own patches to it anyway. I don't see this as being a huge problem, at least initially, but perhaps as folks start using computed properties for newer versions of node and v4 LTS starts to get a bit old we could end up in hot water.

  15. Fishrock123 commented on Aug 26, 2015

    @Fishrock123
    Fishrock123
    on Aug 26, 2015
    Contributor
    More actions

    I'm fine with just leaving a note about it I think.

  16. 11 remaining items

  17. ofrobots
    added a commit that references this issue on Sep 15, 2015

    deps: upgrade V8 to 4.5.103.33

    685b84c
  18. rvagg commented on Sep 15, 2015

    @rvagg
    rvagg
    on Sep 15, 2015
    Member
    More actions

    addressed by #2870

  19. ofrobots
    added 2 commits that reference this issue on Sep 15, 2015

    deps: upgrade V8 to 4.5.103.33

    704dcce

    deps: upgrade V8 to 4.5.103.33

    7ebd881
  20. brendanashworth commented on Sep 17, 2015

    @brendanashworth
    brendanashworth
    on Sep 17, 2015
    Contributor
    More actions

    The fix landed in 704dcce and was released in 4.1.0, closing.

  21. brendanashworth
    closed this as completedon Sep 17, 2015
  22. saminzadeh
    added a commit that references this issue on Aug 25, 2017

    use newer node version (#49)

    ce8ab0f
  23. msk
    added a commit that references this issue on May 11, 2026

    Update to 4.0.0

    e40913a
  24. tsutsui
    added a commit that references this issue on Oct 17, 2026

    Update to 4.0.0

    bdd3ecb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.