test262/src/computed-property-names/computed-property-name-from-assignment-expression-logical-and.case
2021-04-20 09:53:57 -04:00

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);