2023-09-13 13:46:05 +02:00
|
|
|
// 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]
|
2023-09-13 13:51:31 +02:00
|
|
|
features: [import-attributes, json-modules]
|
2023-09-13 13:46:05 +02:00
|
|
|
---*/
|
|
|
|
|
2023-09-13 13:51:31 +02:00
|
|
|
import * as ns from './json-via-namespace_FIXTURE.json' with { type: 'json' };
|
2023-09-13 13:46:05 +02:00
|
|
|
|
|
|
|
assert.sameValue(Object.getOwnPropertyNames(ns).length, 1);
|
|
|
|
assert.sameValue(ns.default, 262);
|