// Copyright (C) 2017 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.4 ---*/ //- setup let flag1 = false; let flag2 = false; let x, y; //- elems { x = flag1 = true, y = flag2 = true } //- vals { y: 1 } //- body assert.sameValue(flag1, true); assert.sameValue(flag2, false); //- teardown promise .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE) .then($DONE, $DONE);