mirror of https://github.com/tc39/test262.git
20 lines
348 B
Plaintext
20 lines
348 B
Plaintext
// Copyright (C) 2015 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: error
|
|
es6id: 12.14.5.4
|
|
features: [const]
|
|
---*/
|
|
|
|
//- setup
|
|
const c = null;
|
|
//- error
|
|
TypeError
|
|
//- elems
|
|
{ c }
|
|
//- vals
|
|
{ c: 1 }
|