test262/src/computed-property-names/computed-property-name-from-expression-logical-or.case
2020-09-17 16:24:07 -04:00

17 lines
345 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 logical or
template: evaluation
features: [computed-property-names]
---*/
//- setup
let x = 0;
//- ComputedPropertyName
x || 1
//- value
2
//- teardown
assert.sameValue(x, 0);