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

Normative: Evaluate all computed names before any values in object literals #945

Closed
wants to merge 1 commit into from

Commits on May 16, 2017

  1. Normative: Evaluate all computed names before any values in object li…

    …terals
    
    To make object literals consistent with decorator and field proposals, Brian
    Terlson and Yehuda Katz proposed in the object evaluation order proposal that
    computed property names in object literals be evaluated before any of the
    right-hand sides. This patch implements that proposal.
    
    The specification is organized by making PropertyDeclarationEvaluation return
    a List of "fields", which for object literals, means key-value pairs which are
    not methods Methods are excluded because they are evaluated in a way which cannot
    have side effects or observe the world.
    littledan committed May 16, 2017
    Configuration menu
    Copy the full SHA
    50985c4 View commit details
    Browse the repository at this point in the history