mirror of
https://github.com/denoland/deno
synced 2024-08-27 20:09:17 +00:00
![Ryan Dahl](/assets/img/avatar_default.png)
* Native ES modules This is a major refactor of internal compiler. Before: JS and TS both were sent through the typescript compiler where their imports were parsed and handled. Both compiled to AMD JS and finally sent to V8 Now: JS is sent directly into V8. TS is sent through the typescript compiler, but tsc generates ES modules now instead of AMD. This generated JS is then dumped into V8. This should much faster for pure JS code. It may improve TS compilation speed. In the future this allows us to separate TS out of the runtime heap and into its own dedicated snapshot. This will result in a smaller runtime heap, and thus should be faster. Some tests were unfortunately disabled to ease landing this patch: 1. compiler_tests.ts which I intend to bring back in later commits. 2. Some text_encoding_test.ts tests which made the file invalid utf8. See PR for a discussion. Also worth noting that this is necessary to support WASM
5 lines
204 B
Plaintext
5 lines
204 B
Plaintext
[WILDCARD]Error: exception from mod1
|
|
at throwsError (file://[WILDCARD]/tests/subdir/mod1.ts:16:9)
|
|
at foo (file://[WILDCARD]/tests/error_002.ts:4:3)
|
|
at file://[WILDCARD]/tests/error_002.ts:7:1
|