tc39 / test262

Official ECMAScript Conformance Test Suite
Other
2.38k stars 461 forks source link

`import defer` testing plan #4215

Open nicolo-ribaudo opened 2 months ago

nicolo-ribaudo commented 2 months ago

https://github.com/tc39/proposal-defer-import-eval/

Syntax

Valid cases

import defer * as ns from "mod";
import defer from "mod";
import defer * as ns from "mod";
export { ns };

Invalid cases (one per file)

import defer x from "mod";
import defer { x } from "mod";
import defer y, * as ns from "mod";
import defer as ns from "mod";
export defer * as ns from "mod";

All the existing dynamic import syntax tests should be duplicated to import.defer (both valid and invalid).

Deferred namespace object

Evaluation

Sync

Errors

Async

ptomato commented 1 month ago

@nicolo-ribaudo Can you suggest someone from whom it would be useful to get feedback on this testing plan?

nicolo-ribaudo commented 1 month ago

Maybe @takikawa who's working on an implementation, or @guybedford.