blob: 6d507177e1ec5f45ed39fe5f861f2c4490555114 [file] [log] [blame]
// META: global=window,worker
for (const value of [null, true, false, "string"]) {
promise_test(async t => {
const result = await import(`./${value}.json`, { assert: { type: "json" } });
assert_equals(result.default, value);
}, `Non-object: ${value}`);
}
promise_test(async t => {
const result = await import("./array.json", { assert: { type: "json" } });
assert_array_equals(result.default, ["en", "try"]);
}, "Non-object: array");