summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/import/import-assertions/json-via-namespace.js
blob: c4142df74b905651415314d43b5281f391e03f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |reftest| skip module -- json-modules is not supported
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-parse-json-module
description: May be imported via a module namespace object
flags: [module]
features: [import-assertions, json-modules]
---*/

import * as ns from './json-via-namespace_FIXTURE.json' assert { type: 'json' };

assert.sameValue(Object.getOwnPropertyNames(ns).length, 1);
assert.sameValue(ns.default, 262);

reportCompare(0, 0);