diff --git a/cli/build.rs b/cli/build.rs index 983857625a..777e745586 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -93,7 +93,7 @@ fn main() { let runtime_snapshot_path = o.join("CLI_SNAPSHOT.bin"); let compiler_snapshot_path = o.join("COMPILER_SNAPSHOT.bin"); - let js_files = get_js_files("js2"); + let js_files = get_js_files("rt"); create_runtime_snapshot(&runtime_snapshot_path, js_files); let js_files = get_js_files("tsc"); diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index feb6e29ed1..7d72d5cd4d 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -1462,7 +1462,7 @@ mod tests { assert!(r.is_err()); let p = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")) - .join("js2/99_main.js"); + .join("rt/99_main.js"); let specifier = ModuleSpecifier::resolve_url_or_path(p.to_str().unwrap()).unwrap(); let r = fetcher @@ -1485,7 +1485,7 @@ mod tests { assert!(r.is_err()); let p = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")) - .join("js2/99_main.js"); + .join("rt/99_main.js"); let specifier = ModuleSpecifier::resolve_url_or_path(p.to_str().unwrap()).unwrap(); let r = fetcher diff --git a/cli/js2/00_bootstrap_namespace.js b/cli/rt/00_bootstrap_namespace.js similarity index 100% rename from cli/js2/00_bootstrap_namespace.js rename to cli/rt/00_bootstrap_namespace.js diff --git a/cli/js2/00_dom_exception.js b/cli/rt/00_dom_exception.js similarity index 100% rename from cli/js2/00_dom_exception.js rename to cli/rt/00_dom_exception.js diff --git a/cli/js2/01_build.js b/cli/rt/01_build.js similarity index 100% rename from cli/js2/01_build.js rename to cli/rt/01_build.js diff --git a/cli/js2/01_colors.js b/cli/rt/01_colors.js similarity index 100% rename from cli/js2/01_colors.js rename to cli/rt/01_colors.js diff --git a/cli/js2/01_errors.js b/cli/rt/01_errors.js similarity index 100% rename from cli/js2/01_errors.js rename to cli/rt/01_errors.js diff --git a/cli/js2/01_event.js b/cli/rt/01_event.js similarity index 100% rename from cli/js2/01_event.js rename to cli/rt/01_event.js diff --git a/cli/js2/01_internals.js b/cli/rt/01_internals.js similarity index 100% rename from cli/js2/01_internals.js rename to cli/rt/01_internals.js diff --git a/cli/js2/01_version.js b/cli/rt/01_version.js similarity index 100% rename from cli/js2/01_version.js rename to cli/rt/01_version.js diff --git a/cli/js2/01_web_util.js b/cli/rt/01_web_util.js similarity index 100% rename from cli/js2/01_web_util.js rename to cli/rt/01_web_util.js diff --git a/cli/js2/02_abort_signal.js b/cli/rt/02_abort_signal.js similarity index 100% rename from cli/js2/02_abort_signal.js rename to cli/rt/02_abort_signal.js diff --git a/cli/js2/02_console.js b/cli/rt/02_console.js similarity index 100% rename from cli/js2/02_console.js rename to cli/rt/02_console.js diff --git a/cli/js2/03_dom_iterable.js b/cli/rt/03_dom_iterable.js similarity index 100% rename from cli/js2/03_dom_iterable.js rename to cli/rt/03_dom_iterable.js diff --git a/cli/js2/06_util.js b/cli/rt/06_util.js similarity index 100% rename from cli/js2/06_util.js rename to cli/rt/06_util.js diff --git a/cli/js2/07_base64.js b/cli/rt/07_base64.js similarity index 100% rename from cli/js2/07_base64.js rename to cli/rt/07_base64.js diff --git a/cli/js2/08_text_encoding.js b/cli/rt/08_text_encoding.js similarity index 100% rename from cli/js2/08_text_encoding.js rename to cli/rt/08_text_encoding.js diff --git a/cli/js2/10_dispatch_json.js b/cli/rt/10_dispatch_json.js similarity index 100% rename from cli/js2/10_dispatch_json.js rename to cli/rt/10_dispatch_json.js diff --git a/cli/js2/10_dispatch_minimal.js b/cli/rt/10_dispatch_minimal.js similarity index 100% rename from cli/js2/10_dispatch_minimal.js rename to cli/rt/10_dispatch_minimal.js diff --git a/cli/js2/11_crypto.js b/cli/rt/11_crypto.js similarity index 100% rename from cli/js2/11_crypto.js rename to cli/rt/11_crypto.js diff --git a/cli/js2/11_resources.js b/cli/rt/11_resources.js similarity index 100% rename from cli/js2/11_resources.js rename to cli/rt/11_resources.js diff --git a/cli/js2/11_streams.js b/cli/rt/11_streams.js similarity index 100% rename from cli/js2/11_streams.js rename to cli/rt/11_streams.js diff --git a/cli/js2/11_timers.js b/cli/rt/11_timers.js similarity index 100% rename from cli/js2/11_timers.js rename to cli/rt/11_timers.js diff --git a/cli/js2/11_url.js b/cli/rt/11_url.js similarity index 100% rename from cli/js2/11_url.js rename to cli/rt/11_url.js diff --git a/cli/js2/11_workers.js b/cli/rt/11_workers.js similarity index 100% rename from cli/js2/11_workers.js rename to cli/rt/11_workers.js diff --git a/cli/js2/12_io.js b/cli/rt/12_io.js similarity index 100% rename from cli/js2/12_io.js rename to cli/rt/12_io.js diff --git a/cli/js2/13_buffer.js b/cli/rt/13_buffer.js similarity index 100% rename from cli/js2/13_buffer.js rename to cli/rt/13_buffer.js diff --git a/cli/js2/20_blob.js b/cli/rt/20_blob.js similarity index 100% rename from cli/js2/20_blob.js rename to cli/rt/20_blob.js diff --git a/cli/js2/20_headers.js b/cli/rt/20_headers.js similarity index 100% rename from cli/js2/20_headers.js rename to cli/rt/20_headers.js diff --git a/cli/js2/20_streams_queuing_strategy.js b/cli/rt/20_streams_queuing_strategy.js similarity index 100% rename from cli/js2/20_streams_queuing_strategy.js rename to cli/rt/20_streams_queuing_strategy.js diff --git a/cli/js2/21_dom_file.js b/cli/rt/21_dom_file.js similarity index 100% rename from cli/js2/21_dom_file.js rename to cli/rt/21_dom_file.js diff --git a/cli/js2/22_form_data.js b/cli/rt/22_form_data.js similarity index 100% rename from cli/js2/22_form_data.js rename to cli/rt/22_form_data.js diff --git a/cli/js2/23_multipart.js b/cli/rt/23_multipart.js similarity index 100% rename from cli/js2/23_multipart.js rename to cli/rt/23_multipart.js diff --git a/cli/js2/24_body.js b/cli/rt/24_body.js similarity index 100% rename from cli/js2/24_body.js rename to cli/rt/24_body.js diff --git a/cli/js2/25_request.js b/cli/rt/25_request.js similarity index 100% rename from cli/js2/25_request.js rename to cli/rt/25_request.js diff --git a/cli/js2/26_fetch.js b/cli/rt/26_fetch.js similarity index 100% rename from cli/js2/26_fetch.js rename to cli/rt/26_fetch.js diff --git a/cli/js2/30_files.js b/cli/rt/30_files.js similarity index 100% rename from cli/js2/30_files.js rename to cli/rt/30_files.js diff --git a/cli/js2/30_fs.js b/cli/rt/30_fs.js similarity index 100% rename from cli/js2/30_fs.js rename to cli/rt/30_fs.js diff --git a/cli/js2/30_metrics.js b/cli/rt/30_metrics.js similarity index 100% rename from cli/js2/30_metrics.js rename to cli/rt/30_metrics.js diff --git a/cli/js2/30_net.js b/cli/rt/30_net.js similarity index 100% rename from cli/js2/30_net.js rename to cli/rt/30_net.js diff --git a/cli/js2/30_os.js b/cli/rt/30_os.js similarity index 100% rename from cli/js2/30_os.js rename to cli/rt/30_os.js diff --git a/cli/js2/40_compiler_api.js b/cli/rt/40_compiler_api.js similarity index 100% rename from cli/js2/40_compiler_api.js rename to cli/rt/40_compiler_api.js diff --git a/cli/js2/40_diagnostics.js b/cli/rt/40_diagnostics.js similarity index 100% rename from cli/js2/40_diagnostics.js rename to cli/rt/40_diagnostics.js diff --git a/cli/js2/40_error_stack.js b/cli/rt/40_error_stack.js similarity index 100% rename from cli/js2/40_error_stack.js rename to cli/rt/40_error_stack.js diff --git a/cli/js2/40_fs_events.js b/cli/rt/40_fs_events.js similarity index 100% rename from cli/js2/40_fs_events.js rename to cli/rt/40_fs_events.js diff --git a/cli/js2/40_net_unstable.js b/cli/rt/40_net_unstable.js similarity index 100% rename from cli/js2/40_net_unstable.js rename to cli/rt/40_net_unstable.js diff --git a/cli/js2/40_performance.js b/cli/rt/40_performance.js similarity index 100% rename from cli/js2/40_performance.js rename to cli/rt/40_performance.js diff --git a/cli/js2/40_permissions.js b/cli/rt/40_permissions.js similarity index 100% rename from cli/js2/40_permissions.js rename to cli/rt/40_permissions.js diff --git a/cli/js2/40_plugins.js b/cli/rt/40_plugins.js similarity index 100% rename from cli/js2/40_plugins.js rename to cli/rt/40_plugins.js diff --git a/cli/js2/40_process.js b/cli/rt/40_process.js similarity index 100% rename from cli/js2/40_process.js rename to cli/rt/40_process.js diff --git a/cli/js2/40_read_file.js b/cli/rt/40_read_file.js similarity index 100% rename from cli/js2/40_read_file.js rename to cli/rt/40_read_file.js diff --git a/cli/js2/40_repl.js b/cli/rt/40_repl.js similarity index 100% rename from cli/js2/40_repl.js rename to cli/rt/40_repl.js diff --git a/cli/js2/40_signals.js b/cli/rt/40_signals.js similarity index 100% rename from cli/js2/40_signals.js rename to cli/rt/40_signals.js diff --git a/cli/js2/40_testing.js b/cli/rt/40_testing.js similarity index 100% rename from cli/js2/40_testing.js rename to cli/rt/40_testing.js diff --git a/cli/js2/40_tls.js b/cli/rt/40_tls.js similarity index 100% rename from cli/js2/40_tls.js rename to cli/rt/40_tls.js diff --git a/cli/js2/40_tty.js b/cli/rt/40_tty.js similarity index 100% rename from cli/js2/40_tty.js rename to cli/rt/40_tty.js diff --git a/cli/js2/40_write_file.js b/cli/rt/40_write_file.js similarity index 100% rename from cli/js2/40_write_file.js rename to cli/rt/40_write_file.js diff --git a/cli/js2/90_deno_ns.js b/cli/rt/90_deno_ns.js similarity index 100% rename from cli/js2/90_deno_ns.js rename to cli/rt/90_deno_ns.js diff --git a/cli/js2/90_deno_ns_unstable.js b/cli/rt/90_deno_ns_unstable.js similarity index 100% rename from cli/js2/90_deno_ns_unstable.js rename to cli/rt/90_deno_ns_unstable.js diff --git a/cli/js2/99_main.js b/cli/rt/99_main.js similarity index 100% rename from cli/js2/99_main.js rename to cli/rt/99_main.js diff --git a/cli/js2/README.md b/cli/rt/README.md similarity index 99% rename from cli/js2/README.md rename to cli/rt/README.md index 24f86249de..f73163df21 100644 --- a/cli/js2/README.md +++ b/cli/rt/README.md @@ -1,4 +1,4 @@ -# js2 +# Runtime JavaScript Code This directory contains Deno runtime code written in plain JavaScript. diff --git a/cli/tsc/README.md b/cli/tsc/README.md index d3263c4bdc..e680138857 100644 --- a/cli/tsc/README.md +++ b/cli/tsc/README.md @@ -3,7 +3,7 @@ This directory contains the code for the typescript compiler snapshot There is currently A LOT of overlap between this code and the runtime snapshot -code in cli/js2. +code in cli/rt. This is intentionally ugly because there should be no overlap. diff --git a/docs/runtime.md b/docs/runtime.md index 2b9d66263c..f035d75b44 100644 --- a/docs/runtime.md +++ b/docs/runtime.md @@ -13,7 +13,7 @@ The detailed documentation for implemented Web APIs can be found on [doc.deno.land](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/dts/lib.deno.shared_globals.d.ts). Additionally, a full list of the Web APIs which Deno implements is also available -[in the repository](https://github.com/denoland/deno/blob/master/cli/js2/README.md). +[in the repository](https://github.com/denoland/deno/blob/master/cli/rt/README.md). The TypeScript definitions for the implemented web APIs can be found in the [`lib.deno.shared_globals.d.ts`](https://github.com/denoland/deno/blob/master/cli/dts/lib.deno.shared_globals.d.ts)