mirror of
https://github.com/tc39/test262.git
synced 2025-05-14 03:40:29 +02:00
In ECMAScript 5, assignment to a non-reference value throws a runtime ReferenceError. ECMAscript 6 specifies an early ReferenceError in these cases. Tests for this behavior have been authored to pass in both cases. Simplify these tests to describe and assert the early error.
14 lines
361 B
JavaScript
14 lines
361 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: >
|
|
It is an early Reference Error if IsValidSimpleAssignmentTarget of
|
|
LeftHandSideExpression is false.
|
|
es6id: 12.4.1
|
|
description: Applied to a non-simple assignment target
|
|
negative: ReferenceError
|
|
---*/
|
|
|
|
1++;
|