2015-01-04 19:40:09 +11:00

10 lines
100 B
JavaScript

// Options: --symbols
var s = Symbol();
var object = {
[s]: 42
};
assert.equal(object[s], 42);