blob: 18b5390c58f3df305f6d3fa07bd5cc6952ff1966 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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
5var a = {};
6
7function getter() {
8 do {
9 return a + 1;
10 } while (false);
11}
12
13a.__proto__ = Error("");
14a.__defineGetter__('message', getter);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000015assertThrows(()=>a.message, RangeError);