blob: 8b4236b8d1ed85cbd531f841dfb1142fab924f20 [file] [log] [blame] [edit]
// Copyright (C) 2017 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
The assignment target should obey `const` semantics.
template: default
es6id: 12.14.5.3
features: [const]
---*/
//- setup
const c = null;
//- elems
[ c ]
//- vals
[1]
//- teardown
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(iterCount, 0);
assert.sameValue(constructor, TypeError);
}).then($DONE, $DONE);