Files
Kmake/deps/v8/test/mjsunit/harmony/regress/regress-385406640.js

21 lines
505 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
// Copyright 2024 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
for (let v0 = 0; v0 < 5; v0++) {
async function f1() {
await using v13 = {
[Symbol.asyncDispose]() {
throw RangeError();
},
};
await using v12 = {
[Symbol.asyncDispose]() {
},
};
}
assertThrowsAsync(f1().then(), RangeError);
}