test262/src/dstr-assignment-for-await/array-elem-put-prop-ref-user-err.case
Rick Waldron 3bff862ca7 src/dstr-assignment-async-iteration -> src/dstr-assignment-for-await
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-31 16:04:56 -04:00

28 lines
592 B
Plaintext

// Copyright (C) 2017 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
Any error raised as a result of setting the value should be forwarded to
the runtime.
template: default
es6id: 12.14.5.3
---*/
//- setup
let x = {
set y(val) {
throw new Test262Error();
}
};
//- elems
[x.y]
//- vals
[23]
//- teardown
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(iterCount, 0);
assert.sameValue(constructor, Test262Error);
}).then($DONE, $DONE);