Source code

Revision control

Copy as Markdown

Other Tools

// |reftest| skip module -- import-text is not supported
// Copyright (C) 2025 Mozilla Foundation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-create-text-module
description: Correctly parses an empty file
info: |
# 16.2.1.8.x CreateTextModule ( source )
The abstract operation CreateTextModule takes argument source (a String) and
returns a normal completion containing a Synthetic Module Record.
It performs the following steps when called:
1. Return CreateDefaultExportSyntheticModule(source).
flags: [module]
features: [import-attributes, import-text]
---*/
import value from './text-empty_FIXTURE' with { type: 'text' };
assert.sameValue(typeof value, 'string');
reportCompare(0, 0);