mirror of
https://github.com/tc39/test262.git
synced 2025-05-16 04:40:42 +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
375 B
JavaScript
14 lines
375 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.14.1
|
|
description: Compound division assignment with non-simple target
|
|
negative: ReferenceError
|
|
---*/
|
|
|
|
1 /= 1;
|