deno/tests/subdir
Ryan Dahl 0ceb554343
Native ES modules (#1460)
* 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
2019-01-09 12:59:46 -05:00
..
subdir2 Add 005_more_imports.ts 2018-08-02 12:49:40 -04:00
auto_print_hello.ts Native ES modules (#1460) 2019-01-09 12:59:46 -05:00
config.json Add ability to load JSON as modules (#1065) 2018-10-30 20:50:40 -07:00
form_urlencoded.txt Implement Body.formData for fetch (#1393) 2018-12-21 17:09:53 -05:00
mismatch_ext.ts Lazily create .mime files only with mismatch/no extension (#1417) 2018-12-27 20:40:06 +00:00
mod1.ts Add 005_more_imports.ts 2018-08-02 12:49:40 -04:00
mod2.ts Improve module resolution. 2018-09-05 22:27:23 -04:00
mod3.js Guess extensions on extension not provided (#859) 2018-10-02 12:38:45 -04:00
mod4.js Guess extensions on extension not provided (#859) 2018-10-02 12:38:45 -04:00
mt_application_ecmascript.j2.js Support CheckJS 2018-10-24 15:29:30 -07:00
mt_application_x_javascript.j4.js Support CheckJS 2018-10-24 15:29:30 -07:00
mt_application_x_typescript.t4.ts Add application/x-typescript mime type support 2018-10-28 11:18:53 -07:00
mt_javascript.js Support CheckJS 2018-10-24 15:29:30 -07:00
mt_text_ecmascript.j3.js Support CheckJS 2018-10-24 15:29:30 -07:00
mt_text_javascript.j1.js Support CheckJS 2018-10-24 15:29:30 -07:00
mt_text_typescript.t1.ts Enforce media types 2018-10-23 04:48:00 -07:00
mt_video_mp2t.t3.ts Enforce media types 2018-10-23 04:48:00 -07:00
mt_video_vdn.t2.ts Enforce media types 2018-10-23 04:48:00 -07:00
no_ext Lazily create .mime files only with mismatch/no extension (#1417) 2018-12-27 20:40:06 +00:00
print_hello.ts Add tests/003_relative_import.ts 2018-07-29 00:22:39 -04:00
unknown_ext.deno Lazily create .mime files only with mismatch/no extension (#1417) 2018-12-27 20:40:06 +00:00