blob: a9778758c44908f2a79288bd3439c97a0904f448 [file] [log] [blame]
Ben Murdoch61f157c2016-09-16 13:49:30 +01001// Copyright 2016 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
5var bar = 0;
6
7function baz() { return this; }
8
9function foo() {
10 bar += 1;
11 if (bar === 2) throw new baz();
12}
13
14foo();