OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 (function f() { | |
6 try { | |
7 throw 1; | |
8 } catch (e) { | |
9 var a = 0; | |
10 var b = 0; | |
11 var c = 0; | |
12 var x = 1; | |
13 var result = eval('eval("x")').toString(); | |
14 assertEquals("1", result); | |
15 } | |
16 var x = 2; | |
17 var result = eval('eval("x")').toString(); | |
18 assertEquals("2", result); | |
19 })(); | |
OLD | NEW |