Created
April 4, 2014 17:56
-
-
Save bterlson/9979700 to your computer and use it in GitHub Desktop.
This file contains 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
let x = "outer"; | |
let obj = { x: "object" }; | |
let res; | |
with ( obj ) { | |
res = { x }; | |
// per 12.1.2.1, short-hand propdef must statically bind to a declarative env record binding | |
} | |
assert( res.x === "outer" ); // is this true? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per AWB: This is wrong, should be fixed in spec.