2015-03-28 01:21:48 +11:00

4 lines
82 B
JavaScript

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