This website requires JavaScript.
Explore
Help
Sign in
foster
/
denoland-deno
Watch
1
Star
0
Fork
You've already forked denoland-deno
0
mirror of
https://github.com/denoland/deno.git
synced
2024-11-24 15:19:26 -05:00
Code
Issues
Packages
1
Wiki
Activity
4c9eee3ebe
denoland-deno
/
tests
/
testdata
/
import_attributes
/
dynamic_import.out
3 lines
74 B
Text
Raw
Normal View
History
Unescape
Escape
feat: Add support for import assertions and JSON modules (#12866) This commit adds proper support for import assertions and JSON modules. Implementation of "core/modules.rs" was changed to account for multiple possible module types, instead of always assuming that the code is an "ES module". In effect "ModuleMap" now has knowledge about each modules' type (stored via "ModuleType" enum). Module loading pipeline now stores information about expected module type for each request and validates that expected type matches discovered module type based on file's "MediaType". Relevant tests were added to "core/modules.rs" and integration tests, additionally multiple WPT tests were enabled. There are still some rough edges in the implementation and not all WPT were enabled, due to: a) unclear BOM handling in source code by "FileFetcher" b) design limitation of Deno's "FileFetcher" that doesn't download the same module multiple times in a single run Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-12-15 13:22:36 -05:00
[WILDCARD]
refactor: merge Deno & Node inspectors (#18691)
2023-04-30 03:24:13 -04:00
[Module: null prototype] { default: { a: "b", c: { d: 10 } } }
Copy permalink