This CL fixes a bug where when rethrowing the sole error message in a block with resources to dispose, the message is not correctly preserved, causing no error message to be displayed in d8. Bug: 42203506 Change-Id: I22ca4c26800f37c741df14e72d424f81ffa83333 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6300617 Commit-Queue: Shu-yu Guo <syg@chromium.org> Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org> Cr-Commit-Position: refs/heads/main@{#98901}
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
// Copyright 2025 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: --js-staging
|
|
|
|
// Tests that when a block has exactly one error during disposal the message is
|
|
// correctly rethrown.
|
|
{
|
|
using x = 1; // Not an object
|
|
}
|