blob: 8f8dc18f6ce37fb5493262edaed5871d187bab55 [file] [log] [blame]
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001// 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})();