summaryrefslogtreecommitdiff
path: root/test/suite/sputnik/Regression/S11.13.2_R2.3_T9.js
blob: 0c0837b4c3c8a33ba3b0040df96aa9b812b46b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S11.13.2_R2.3_T9;
 * @section: 11.13.2;
 * @description: Result is not ToInt32(Undefined) & ToInt32(AssignmentExpression);
*/

//CHECK#1
try {  
  x &= new String("-1");
  if (x === 0) {
    $ERROR('#1: Result is not ToInt32(Undefined) & ToInt32(AssignmentExpression)');
  }  else {
    $ERROR('#1: x &= new String("-1") throw ReferenceError');
  } 
}
catch (e) {
  if ((e instanceof ReferenceError) !== true) {
    $ERROR('#1: x &= new String("-1") throw ReferenceError');  
  }
}