add support for this in computed property names
This commit is contained in:
3
test/fixtures/computed-property-names/this/actual.js
vendored
Normal file
3
test/fixtures/computed-property-names/this/actual.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var obj = {
|
||||
["x" + this.foo]: "heh"
|
||||
};
|
||||
4
test/fixtures/computed-property-names/this/expected.js
vendored
Normal file
4
test/fixtures/computed-property-names/this/expected.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
var obj = function (obj) {
|
||||
obj["x" + this.foo] = "heh";
|
||||
return obj;
|
||||
}.call(this, {});
|
||||
Reference in New Issue
Block a user