Everywhere: Hoist the Libraries folder to the top-level

This commit is contained in:
Timothy Flynn 2024-11-09 12:25:08 -05:00 committed by Andreas Kling
commit 93712b24bf
Notes: github-actions[bot] 2024-11-10 11:51:52 +00:00
4547 changed files with 104 additions and 113 deletions

View file

@ -0,0 +1,16 @@
import * as ns from "./default-and-star-export.mjs";
const keys = Reflect.ownKeys(ns);
// The keys should be in alphabetical order and @@toString at the end
if (keys.length < 4) throw new Error("Expected at least 3 keys and @@toStringTag");
if (keys[0] !== "") throw new Error('Expected keys[0] === ""');
if (keys[1] !== "*") throw new Error('Expected keys[1] === "*"');
if (keys[2] !== "default") throw new Error('Expected keys[2] === "default"');
if (keys.indexOf(Symbol.toStringTag) <= 2)
throw new Error("Expected Symbol.toStringTag to be behind string keys");
export const passed = true;