mirror of https://github.com/tc39/test262.git
21 lines
445 B
Plaintext
21 lines
445 B
Plaintext
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
desc: >
|
|
The Initializer should only be evaluated if v is undefined.
|
|
template: default
|
|
es6id: 12.14.5.3
|
|
---*/
|
|
|
|
//- setup
|
|
var flag1 = false, flag2 = false;
|
|
var _;
|
|
//- elems
|
|
[ _ = flag1 = true, _ = flag2 = true ]
|
|
//- vals
|
|
[14]
|
|
//- body
|
|
assert.sameValue(flag1, false);
|
|
assert.sameValue(flag2, true);
|