8f22fcec24
We cannot generate debug events if JS execution is disallowed since vital debugging logic is still implemented in JS. Return early from Debug::OnException if that is the case. BUG=chromium:662674 Review-Url: https://codereview.chromium.org/2491443002 Cr-Commit-Position: refs/heads/master@{#40858}
15 lines
328 B
JavaScript
15 lines
328 B
JavaScript
// Copyright 2016 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.
|
|
|
|
// Flags: --stack-size=100
|
|
|
|
Debug = debug.Debug
|
|
|
|
function overflow() {
|
|
return overflow();
|
|
}
|
|
|
|
Debug.setBreakOnException();
|
|
assertThrows(overflow, RangeError);
|