// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: > The Initializer should only be evaluated if v is undefined. es6id: 12.14.5.3 ---*/ var result, value, x, flag; value = []; flag = false; result = [ x = flag = true ] = value; assert.sameValue(result, value); assert.sameValue(x, true); assert.sameValue(flag, true); value = [14]; flag = false; result = [ x = flag = true ] = value; assert.sameValue(result, value); assert.sameValue(x, 14); assert.sameValue(flag, false);