test262/src/dstr-assignment/obj-id-put-const.case

20 lines
348 B
Plaintext
Raw Normal View History

2015-04-17 23:12:38 +02:00
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
2015-04-17 23:12:38 +02:00
The assignment target should obey `const` semantics.
template: error
2015-04-17 23:12:38 +02:00
es6id: 12.14.5.4
features: [const]
---*/
//- setup
2015-04-17 23:12:38 +02:00
const c = null;
//- error
TypeError
//- elems
{ c }
//- vals
{ c: 1 }