Debian Codegraph @

js/src/tests/test262/language/statements/throw/S12.13_A2_T2.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 "throw Expression" returns (throw, GetValue(Result(1)), empty), where 1
7 evaluates Expression
8 es5id: 12.13_A2_T2
9 description: Throwing null
10 ---*/
11
12 // CHECK#1
13 try{
14 throw null;
15 }
16 catch(e){
17 if (e!==null) throw new Test262Error('#1: Exception === null. Actual: Exception ==='+ e );
18 }
19
20 reportCompare(0, 0);