blob: 0e956f6e94d73885c29e4f24a1feb11acaf68628 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 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// Should not crash in ASAN.
6function shouldThrow() {
7 shouldThrow(JSON.parse('{"0":1}'));
8}
9assertThrows("shouldThrow()", RangeError);