v8/test/mjsunit/regress/regress-472504.js
erikcorry 5a93a3304c Reland: Fix JSON parser Handle leak (previous CL 1041483004)
R=mstarzinger@chromium.org
BUG=v8:3976
BUG=472504
LOG=y

Review URL: https://codereview.chromium.org/1051833002

Cr-Commit-Position: refs/heads/master@{#27571}
2015-04-01 16:58:47 +00:00

10 lines
307 B
JavaScript

// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Should not crash in ASAN.
function shouldThrow() {
shouldThrow(JSON.parse('{"0":1}'));
}
assertThrows("shouldThrow()", RangeError);