Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * Function's scope chain is started when it is declared
6 *
7 * @path ch13/13.2/S13.2.2_A19_T3.js
8 * @description Function is declared in the object scope and then an exception is thrown
9 */
11 var a = 1;
13 var __obj = {a:2};
15 try {
16 with (__obj)
17 {
18 var __func = function (){return a;};
19 throw 3;
20 }
21 } catch (e) {
22 ;
23 }
25 result = __func();
27 //////////////////////////////////////////////////////////////////////////////
28 //CHECK#1
29 if (result !== 2) {
30 $ERROR('#1: result === 2. Actual: result ==='+result);
31 }
32 //
33 //////////////////////////////////////////////////////////////////////////////