mirror of
https://github.com/tc39/test262.git
synced 2025-08-21 01:48:30 +02:00
17 lines
399 B
Plaintext
17 lines
399 B
Plaintext
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
desc: Computed property name from assignment expression logical and
|
|
template: evaluation
|
|
features: [computed-property-names, logical-assignment-operators]
|
|
---*/
|
|
//- setup
|
|
let x = 0;
|
|
//- ComputedPropertyName
|
|
x &&= 1
|
|
//- value
|
|
2
|
|
//- teardown
|
|
assert.sameValue(x, 0);
|