2015-01-05 10:18:42 +11:00

4 lines
82 B
JavaScript

var x = 'y';
assert.equal({[x]: 10}.y, 10);
assert.equal({[x + 'y']: 10}.yy, 10);