blob: ea876df8b24f94bdb1dc7d9c665a3d4687739c39 [file] [log] [blame]
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: First expression is evaluated first, and then second expression
es5id: 11.11.1_A2.4_T1
description: Checking with "="
---*/
//CHECK#1
var x = false;
if (((x = true) && x) !== true) {
throw new Test262Error('#1: var x = false; ((x = true) && x) === true');
}
//CHECK#2
var x = false;
if ((x && (x = true)) !== false) {
throw new Test262Error('#2: var x = false; (x && (x = true)) === false');
}