add support for this in computed property names

This commit is contained in:
Sebastian McKenzie
2014-10-08 15:36:45 +11:00
parent 388f09fb5b
commit 577877b813
5 changed files with 29 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
var obj = {
["x" + this.foo]: "heh"
};

View File

@@ -0,0 +1,4 @@
var obj = function (obj) {
obj["x" + this.foo] = "heh";
return obj;
}.call(this, {});