24a0987441
ErrorThrower::Reify() should only be called if an error is actually set. This CL introduces a Reset() method to replace the obsolete (now disallowed) usages. R=mtrofin@chromium.org BUG=chromium:717056 Change-Id: I41b989a9c7b33591ee26ec6d43540a38289ab54f Reviewed-on: https://chromium-review.googlesource.com/493506 Reviewed-by: Mircea Trofin <mtrofin@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#45039}
17 lines
370 B
JavaScript
17 lines
370 B
JavaScript
// Copyright 2017 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.
|
|
|
|
// Check that stack overflow inside asm-wasm translation propagates correctly.
|
|
|
|
function asm() {
|
|
'use asm';
|
|
return {};
|
|
}
|
|
|
|
function rec() {
|
|
asm();
|
|
rec();
|
|
}
|
|
assertThrows(() => rec(), RangeError);
|