blob: 799f269fef3e36ac3e4f8b760db0ffb21db1ad6d [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) {
$ERROR('#1: var x = false; ((x = true) && x) === true');
}
//CHECK#2
var x = false;
if ((x && (x = true)) !== false) {
$ERROR('#2: var x = false; (x && (x = true)) === false');
}