1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
denoland-deno/cli/rt
Bartek Iwańczuk 65e72b68ac
refactor(cli): decouple ops from ProgramState and Flags (#8659)
This commit does major refactor of "Worker" and "WebWorker",
in order to decouple them from "ProgramState" and "Flags".
The main points of interest are "create_main_worker()" and
"create_web_worker_callback()" functions which are responsible
for creating "Worker" and "WebWorker" in CLI context.
As a result it is now possible to factor out common "runtime"
functionality into a separate crate.
2020-12-11 18:49:26 +01:00
..
00_bootstrap_namespace.js simplify deno_web init (#7313) 2020-09-01 16:32:07 -04:00
01_build.js Rename cli/js2 to cli/rt (#6857) 2020-07-23 16:27:26 +02:00
01_colors.js Reland feat(cli/console): inspect with colors regardless of Deno.noColor (#7976) 2020-10-15 12:32:03 +02:00
01_errors.js refactor: remove OpError, use ErrBox everywhere (#7187) 2020-08-26 00:22:15 +02:00
01_internals.js Rename cli/js2 to cli/rt (#6857) 2020-07-23 16:27:26 +02:00
01_version.js Rename cli/js2 to cli/rt (#6857) 2020-07-23 16:27:26 +02:00
01_web_util.js refactor(cli/rt): deduplicate code (#8649) 2020-12-07 21:22:58 +01:00
02_console.js build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
06_util.js refactor: prune unneeded JS code (#7689) 2020-09-26 15:59:24 +02:00
10_dispatch_minimal.js fix(core): handle unregistered errors in core better (#7817) 2020-10-05 20:35:51 +11:00
11_timers.js perf: use minimal op with performance.now() (#8619) 2020-12-07 08:27:25 -05:00
11_workers.js fix(web/worker) define event handlers in DOM order (#8334) 2020-11-10 07:15:42 -05:00
12_io.js Rename cli/js2 to cli/rt (#6857) 2020-07-23 16:27:26 +02:00
13_buffer.js Rename cli/js2 to cli/rt (#6857) 2020-07-23 16:27:26 +02:00
27_websocket.js fix(websocket): Fix PermissionDenied error being caught in constructor (#8402) 2020-11-25 15:17:46 +01:00
30_files.js fix(cli): use rid getter for stdio (#8014) 2020-10-20 13:20:17 +02:00
30_fs.js fix(cli): add file URL support for Deno.readLink (#8423) 2020-11-23 22:11:56 +01:00
30_metrics.js refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521) 2020-09-16 22:22:43 +02:00
30_net.js fix: net listen crashes on explicit undefined hostname (#7706) 2020-09-27 10:44:53 -04:00
30_os.js feat(unstable): add Deno.systemCpuInfo() (#7774) 2020-10-26 10:54:27 -04:00
40_compiler_api.js build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
40_diagnostics.js refactor: improve tsc diagnostics (#7420) 2020-09-12 11:53:57 +02:00
40_error_stack.js refactor(core): stack trace mapping (#8660) 2020-12-10 14:45:41 +01:00
40_fs_events.js refactor: move op_resources and op_close to deno_core (#7539) 2020-09-17 18:09:50 +02:00
40_net_unstable.js Rename cli/js2 to cli/rt (#6857) 2020-07-23 16:27:26 +02:00
40_performance.js perf: use minimal op with performance.now() (#8619) 2020-12-07 08:27:25 -05:00
40_permissions.js fix: fix various global objects constructor length (#8373) 2020-11-14 13:10:23 +01:00
40_plugins.js refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521) 2020-09-16 22:22:43 +02:00
40_process.js refactor: move op_resources and op_close to deno_core (#7539) 2020-09-17 18:09:50 +02:00
40_read_file.js Rename cli/js2 to cli/rt (#6857) 2020-07-23 16:27:26 +02:00
40_signals.js refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521) 2020-09-16 22:22:43 +02:00
40_testing.js Reland feat(cli/console): inspect with colors regardless of Deno.noColor (#7976) 2020-10-15 12:32:03 +02:00
40_tls.js refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521) 2020-09-16 22:22:43 +02:00
40_tty.js feat(unstable): add cbreak option to setRaw (#8383) 2020-11-30 11:08:03 -05:00
40_write_file.js build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
41_prompt.js fix(prompt): fix display of non-ASCII characters on Windows (#8199) 2020-11-03 01:15:29 +01:00
90_deno_ns.js build: migrate to dlint (#8176) 2020-11-03 16:19:29 +01:00
99_main.js refactor(cli): decouple ops from ProgramState and Flags (#8659) 2020-12-11 18:49:26 +01:00
README.md docs: end sentences with a period in markdown (#7813) 2020-10-04 07:19:11 +11:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is a plain, old script, not ES modules. The reason is that snapshotting ES modules is much harder, especially if one needs to manipulate global scope (like in case of Deno).

Each file is prefixed with a number, telling in which order scripts should be loaded into V8 isolate. This is temporary solution and we're striving not to require specific order (though it's not 100% obvious if that's feasible).

Deno Web APIs

This directory facilities Web APIs that are available in Deno.

Please note, that some implementations might not be completely aligned with specification.

Some Web APIs are using ops under the hood, eg. console, performance.

Implemented Web APIs