blob: 8223a0df59da12cfac010d5313f59744bf5f612f [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var object = Object.defineProperties({}, {
nonEnumerable: {
enumerable: false,
value: 42
}
});
var result = Object.assign({}, object);
shouldBe(result.nonEnumerable, undefined);