1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/cli
Bartek Iwańczuk e924bbdf36
fix: TLA in web worker (#8809)
Implementors of `deno_core::JsRuntime` might want to do additional actions
during each turn of event loop, eg. `deno_runtime::Worker` polls inspector,
`deno_runtime::WebWorker` receives/dispatches messages from/to worker host.
Previously `JsRuntime::mod_evaluate` was implemented in such fashion that it 
only polled `JsRuntime`'s event loop. This behavior turned out to be wrong 
in the example of `WebWorker` which couldn't receive/dispatch messages because
its implementation of event loop was never called. 

This commit rewrites "mod_evaluate" to return a handle to receiver that resolves
when module's promise resolves. It is now implementors responsibility to poll
event loop after calling `mod_evaluate`.
2020-12-20 00:34:22 +01:00
..
bench refactor(cli+core): various cleanups in Rust (#8336) 2020-11-13 09:17:31 +11:00
dts feat(unstable): support in memory certificate data for Deno.createHttpClient (#8739) 2020-12-19 23:13:48 +01:00
lsp refactor(lsp): optimise static assets (#8771) 2020-12-16 06:34:39 +11:00
ops refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
tests fix: TLA in web worker (#8809) 2020-12-20 00:34:22 +01:00
tools refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
tsc refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
ast.rs chore: update swc_ecmascript to 0.15.0 (#8688) 2020-12-09 23:09:10 +01:00
build.rs Revert "build: Factor out common code into core/build_util.rs (#8756)" (#8763) 2020-12-14 18:42:40 +01:00
Cargo.toml upgrade: swc_ecmascript 0.15.1 (#8836) 2020-12-20 00:30:53 +01:00
checksum.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
colors.rs chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_dir.rs chore: clippy future cleanups (#8514) 2020-11-28 06:47:35 +11:00
diagnostics.rs chore: clippy future cleanups (#8514) 2020-11-28 06:47:35 +11:00
diff.rs refactor(cli+core): various cleanups in Rust (#8336) 2020-11-13 09:17:31 +11:00
disk_cache.rs fix: atomically write files to $DENO_DIR (#8822) 2020-12-18 19:30:49 +01:00
errors.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
file_fetcher.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
file_watcher.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
flags.rs fix(cli): show canary string in long version (#8675) 2020-12-14 13:55:07 +01:00
flags_allow_net.rs chore: add copyright (#7593) 2020-09-21 08:26:41 -04:00
fmt_errors.rs refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
fs_util.rs fix: atomically write files to $DENO_DIR (#8822) 2020-12-18 19:30:49 +01:00
http_cache.rs fix: atomically write files to $DENO_DIR (#8822) 2020-12-18 19:30:49 +01:00
http_util.rs refactor: remove dead code (#8781) 2020-12-15 21:45:29 +01:00
import_map.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
info.rs refactor(cli): remove unnecessary format! calls (#8315) 2020-11-09 15:38:29 +01:00
js.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
lockfile.rs refactor(cli): Remove unnecessary conversion into BTreeMap (#8498) 2020-11-26 13:16:48 +01:00
main.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
media_type.rs chore: clippy future cleanups (#8514) 2020-11-28 06:47:35 +11:00
module_graph.rs fix(cli): make dynamic import errors catchable (#8750) 2020-12-15 16:52:55 +11:00
module_loader.rs fix(cli): make dynamic import errors catchable (#8750) 2020-12-15 16:52:55 +11:00
program_state.rs fix(cli): make dynamic import errors catchable (#8750) 2020-12-15 16:52:55 +11:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
source_maps.rs refactor(cli): rename fmt_errors::JsError to PrettyJsError (#8435) 2020-11-19 20:37:22 +01:00
specifier_handler.rs fix(cli): make dynamic import errors catchable (#8750) 2020-12-15 16:52:55 +11:00
standalone.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
text_encoding.rs Move JSON ops to deno_core (#7336) 2020-09-06 02:34:02 +02:00
tokio_util.rs set maximum size of thread pool to 31 (#7290) 2020-08-31 17:38:25 -04:00
tsc.rs refactor(lsp): optimise static assets (#8771) 2020-12-16 06:34:39 +11:00
tsc_config.rs feat: add mvp language server (#8515) 2020-12-07 21:46:39 +11:00
version.rs refactor(cli): decouple ops from ProgramState and Flags (#8659) 2020-12-11 18:49:26 +01:00

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.