9f2c11f522
Bug: v8:12060 Change-Id: Ie78329cd6e9f8b19e3be0ccc0c14ae4a1995fb9d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3098189 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/master@{#76337}
22 lines
435 B
JavaScript
22 lines
435 B
JavaScript
// Copyright 2021 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.
|
|
|
|
const paths = [
|
|
".",
|
|
"..",
|
|
"...",
|
|
"/",
|
|
"/..",
|
|
"/../..",
|
|
"../..",
|
|
"./..",
|
|
"./../",
|
|
"./../..",
|
|
];
|
|
|
|
const results = await Promise.allSettled(paths.map(path => import(path)));
|
|
for (let result of results) {
|
|
assertEquals(result.status, 'rejected');
|
|
}
|