Skip to content

Instantly share code, notes, and snippets.

@bterlson
Created April 4, 2014 17:56
Show Gist options
  • Save bterlson/9979700 to your computer and use it in GitHub Desktop.
Save bterlson/9979700 to your computer and use it in GitHub Desktop.
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?
@bterlson
Copy link
Author

bterlson commented Apr 4, 2014

Per AWB: This is wrong, should be fixed in spec.

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