From ca4dcb36dd5be0b14a2fafa059ea02ee7e0a0262 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 23 Jul 2020 10:27:26 -0400 Subject: [PATCH] Rename cli/js2 to cli/rt (#6857) --- cli/build.rs | 2 +- cli/file_fetcher.rs | 4 ++-- cli/{js2 => rt}/00_bootstrap_namespace.js | 0 cli/{js2 => rt}/00_dom_exception.js | 0 cli/{js2 => rt}/01_build.js | 0 cli/{js2 => rt}/01_colors.js | 0 cli/{js2 => rt}/01_errors.js | 0 cli/{js2 => rt}/01_event.js | 0 cli/{js2 => rt}/01_internals.js | 0 cli/{js2 => rt}/01_version.js | 0 cli/{js2 => rt}/01_web_util.js | 0 cli/{js2 => rt}/02_abort_signal.js | 0 cli/{js2 => rt}/02_console.js | 0 cli/{js2 => rt}/03_dom_iterable.js | 0 cli/{js2 => rt}/06_util.js | 0 cli/{js2 => rt}/07_base64.js | 0 cli/{js2 => rt}/08_text_encoding.js | 0 cli/{js2 => rt}/10_dispatch_json.js | 0 cli/{js2 => rt}/10_dispatch_minimal.js | 0 cli/{js2 => rt}/11_crypto.js | 0 cli/{js2 => rt}/11_resources.js | 0 cli/{js2 => rt}/11_streams.js | 0 cli/{js2 => rt}/11_timers.js | 0 cli/{js2 => rt}/11_url.js | 0 cli/{js2 => rt}/11_workers.js | 0 cli/{js2 => rt}/12_io.js | 0 cli/{js2 => rt}/13_buffer.js | 0 cli/{js2 => rt}/20_blob.js | 0 cli/{js2 => rt}/20_headers.js | 0 cli/{js2 => rt}/20_streams_queuing_strategy.js | 0 cli/{js2 => rt}/21_dom_file.js | 0 cli/{js2 => rt}/22_form_data.js | 0 cli/{js2 => rt}/23_multipart.js | 0 cli/{js2 => rt}/24_body.js | 0 cli/{js2 => rt}/25_request.js | 0 cli/{js2 => rt}/26_fetch.js | 0 cli/{js2 => rt}/30_files.js | 0 cli/{js2 => rt}/30_fs.js | 0 cli/{js2 => rt}/30_metrics.js | 0 cli/{js2 => rt}/30_net.js | 0 cli/{js2 => rt}/30_os.js | 0 cli/{js2 => rt}/40_compiler_api.js | 0 cli/{js2 => rt}/40_diagnostics.js | 0 cli/{js2 => rt}/40_error_stack.js | 0 cli/{js2 => rt}/40_fs_events.js | 0 cli/{js2 => rt}/40_net_unstable.js | 0 cli/{js2 => rt}/40_performance.js | 0 cli/{js2 => rt}/40_permissions.js | 0 cli/{js2 => rt}/40_plugins.js | 0 cli/{js2 => rt}/40_process.js | 0 cli/{js2 => rt}/40_read_file.js | 0 cli/{js2 => rt}/40_repl.js | 0 cli/{js2 => rt}/40_signals.js | 0 cli/{js2 => rt}/40_testing.js | 0 cli/{js2 => rt}/40_tls.js | 0 cli/{js2 => rt}/40_tty.js | 0 cli/{js2 => rt}/40_write_file.js | 0 cli/{js2 => rt}/90_deno_ns.js | 0 cli/{js2 => rt}/90_deno_ns_unstable.js | 0 cli/{js2 => rt}/99_main.js | 0 cli/{js2 => rt}/README.md | 2 +- cli/tsc/README.md | 2 +- docs/runtime.md | 2 +- 63 files changed, 6 insertions(+), 6 deletions(-) rename cli/{js2 => rt}/00_bootstrap_namespace.js (100%) rename cli/{js2 => rt}/00_dom_exception.js (100%) rename cli/{js2 => rt}/01_build.js (100%) rename cli/{js2 => rt}/01_colors.js (100%) rename cli/{js2 => rt}/01_errors.js (100%) rename cli/{js2 => rt}/01_event.js (100%) rename cli/{js2 => rt}/01_internals.js (100%) rename cli/{js2 => rt}/01_version.js (100%) rename cli/{js2 => rt}/01_web_util.js (100%) rename cli/{js2 => rt}/02_abort_signal.js (100%) rename cli/{js2 => rt}/02_console.js (100%) rename cli/{js2 => rt}/03_dom_iterable.js (100%) rename cli/{js2 => rt}/06_util.js (100%) rename cli/{js2 => rt}/07_base64.js (100%) rename cli/{js2 => rt}/08_text_encoding.js (100%) rename cli/{js2 => rt}/10_dispatch_json.js (100%) rename cli/{js2 => rt}/10_dispatch_minimal.js (100%) rename cli/{js2 => rt}/11_crypto.js (100%) rename cli/{js2 => rt}/11_resources.js (100%) rename cli/{js2 => rt}/11_streams.js (100%) rename cli/{js2 => rt}/11_timers.js (100%) rename cli/{js2 => rt}/11_url.js (100%) rename cli/{js2 => rt}/11_workers.js (100%) rename cli/{js2 => rt}/12_io.js (100%) rename cli/{js2 => rt}/13_buffer.js (100%) rename cli/{js2 => rt}/20_blob.js (100%) rename cli/{js2 => rt}/20_headers.js (100%) rename cli/{js2 => rt}/20_streams_queuing_strategy.js (100%) rename cli/{js2 => rt}/21_dom_file.js (100%) rename cli/{js2 => rt}/22_form_data.js (100%) rename cli/{js2 => rt}/23_multipart.js (100%) rename cli/{js2 => rt}/24_body.js (100%) rename cli/{js2 => rt}/25_request.js (100%) rename cli/{js2 => rt}/26_fetch.js (100%) rename cli/{js2 => rt}/30_files.js (100%) rename cli/{js2 => rt}/30_fs.js (100%) rename cli/{js2 => rt}/30_metrics.js (100%) rename cli/{js2 => rt}/30_net.js (100%) rename cli/{js2 => rt}/30_os.js (100%) rename cli/{js2 => rt}/40_compiler_api.js (100%) rename cli/{js2 => rt}/40_diagnostics.js (100%) rename cli/{js2 => rt}/40_error_stack.js (100%) rename cli/{js2 => rt}/40_fs_events.js (100%) rename cli/{js2 => rt}/40_net_unstable.js (100%) rename cli/{js2 => rt}/40_performance.js (100%) rename cli/{js2 => rt}/40_permissions.js (100%) rename cli/{js2 => rt}/40_plugins.js (100%) rename cli/{js2 => rt}/40_process.js (100%) rename cli/{js2 => rt}/40_read_file.js (100%) rename cli/{js2 => rt}/40_repl.js (100%) rename cli/{js2 => rt}/40_signals.js (100%) rename cli/{js2 => rt}/40_testing.js (100%) rename cli/{js2 => rt}/40_tls.js (100%) rename cli/{js2 => rt}/40_tty.js (100%) rename cli/{js2 => rt}/40_write_file.js (100%) rename cli/{js2 => rt}/90_deno_ns.js (100%) rename cli/{js2 => rt}/90_deno_ns_unstable.js (100%) rename cli/{js2 => rt}/99_main.js (100%) rename cli/{js2 => rt}/README.md (99%) 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)