Document ordering requirements of imported files

This commit is contained in:
Ms2ger 2025-02-12 17:35:04 +01:00 committed by Philip Chimento
parent 0399f644e6
commit ece6726c1e

View File

@ -258,8 +258,11 @@ export {} from './instn-resolve-empty-export_FIXTURE.js';
### `includes` ### `includes`
One or more files whose content must be evaluated in the test realm's global One or more files whose content must be evaluated in the test realm's global
scope prior to test execution. These files are located within the `harness/` scope prior to test execution, after the files listed in the
directory of the Test262 project. [Test262-Defined Bindings](#test262-defined-bindings) section and the file
listed for the `async` flag below.
They must be included in the order given in the source.
These files are located within the `harness/` directory of the Test262 project.
*Example* *Example*
@ -348,9 +351,11 @@ following strings:
``` ```
- **`async`** The file `harness/doneprintHandle.js` must be evaluated in the - **`async`** The file `harness/doneprintHandle.js` must be evaluated in the
test realm's global scope prior to test execution. The test must not be test realm's global scope prior to test execution, after the files listed in
considered complete until the implementation-defined `print` function has the [Test262-Defined Bindings](#test262-defined-bindings) section.
been invoked or some length of time has passed without any such invocation. The test must not be considered complete until the implementation-defined
`print` function has been invoked or some length of time has passed without
any such invocation.
In the event of a passing test run, this function will be invoked with the In the event of a passing test run, this function will be invoked with the
string `'Test262:AsyncTestComplete'`. If invoked with a string that is string `'Test262:AsyncTestComplete'`. If invoked with a string that is
prefixed with the character sequence `Test262:AsyncTestFailure:`, the test prefixed with the character sequence `Test262:AsyncTestFailure:`, the test