// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- desc: > Initializer values should be assigned in left-to-right order. template: default es6id: 12.14.5.4 ---*/ //- setup var x = 0; var a, b; //- elems { a = x += 1, b = x *= 2 } //- vals {} //- body assert.sameValue(a, 1); assert.sameValue(b, 2); assert.sameValue(x, 2);