summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/class/compPropDestr.js
blob: 2bd8cbd49a151a8c129b5652db79078a22316952 (plain)
1
2
3
4
5
6
7
8
9
10
11
var BUGNUMBER = 924688;
var summary = 'Computed Property Names';

print(BUGNUMBER + ": " + summary);

var key = "z";
var { [key]: foo } = { z: "bar" };
assertEq(foo, "bar");

if (typeof reportCompare === 'function')
    reportCompare(0, 0, "ok");