1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-11 08:33:43 -05:00
denoland-deno/cli
Bartek Iwańczuk 135053486c
fix: top-level-await module execution (#7946)
This commit changes implementation of top-level-await in "deno_core".

Previously promise returned from module evaluation was not awaited,
leading to out-of-order execution of modules that have TLA. It's been
fixed by changing "JsRuntime::mod_evaluate" to be an async function
that resolves when the promise returned from module evaluation also
resolves. When waiting for promise resolution event loop is polled
repeatedly, until there are no more dynamic imports or pending
ops.
2020-10-14 14:04:09 +02:00
..
bench chore: add a bundle benchmark (#7828) 2020-10-05 21:39:46 +11:00
dts feat: add alert, confirm, and prompt (#7507) 2020-10-13 15:31:59 +02:00
ops fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00
rt feat: add alert, confirm, and prompt (#7507) 2020-10-13 15:31:59 +02:00
tests fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00
tsc refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
ast.rs refactor(cli): remove TextDocument (#7850) 2020-10-07 22:43:44 +11:00
build.rs refactor: rename isolate to js_runtime (#7858) 2020-10-07 17:20:20 +02:00
Cargo.toml v1.4.6 2020-10-10 12:30:55 +02: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
coverage.rs reland JsRuntime/Worker is not a Future (#7924) 2020-10-11 13:20:40 +02: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 Move JSON ops to deno_core (#7336) 2020-09-06 02:34:02 +02:00
diagnostics.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
diff.rs fix(cli/fmt): make fmt output more readable (#7534) 2020-09-17 21:48:08 -04:00
disk_cache.rs chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11:00
errors.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
file_fetcher.rs refactor(cli): remove TextDocument (#7850) 2020-10-07 22:43:44 +11:00
file_watcher.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
flags.rs chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11:00
flags_allow_net.rs chore: add copyright (#7593) 2020-09-21 08:26:41 -04:00
fmt.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
fmt_errors.rs refactor(cli/fmt_errors): Color stack traces in Rust (#7628) 2020-09-22 19:01:30 +02:00
fs.rs fix(cli/fs) Small change in filter expression (#7865) 2020-10-08 10:57:45 +02:00
global_timer.rs refactor: remove CliState, use OpState, add CliModuleLoader (#7588) 2020-09-20 01:17:35 +02:00
http_cache.rs chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11:00
http_util.rs chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11: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): move info subcommand over to new module graph (#7892) 2020-10-12 13:25:27 +11:00
inspector.rs refactor(cli/repl): get context id from notification (#7864) 2020-10-11 19:49:55 +02:00
installer.rs Re-export deno_core::url (#7525) 2020-09-16 14:28:07 -04:00
js.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
lint.rs refactor(cli/fmt_errors): Color stack traces in Rust (#7628) 2020-09-22 19:01:30 +02:00
lockfile.rs chore: add lockfile tests (#7816) 2020-10-05 10:32:18 +11:00
main.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
media_type.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
metrics.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
module_graph.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
module_graph2.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
module_loader.rs refactor(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +02:00
op_fetch_asset.rs refactor: Simplify op_fetch_asset signature (#7655) 2020-09-24 15:29:18 +02:00
permissions.rs refactor(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +02:00
program_state.rs refactor(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +02:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
repl.rs feat(cli/repl): add regex based syntax highlighter (#7811) 2020-10-13 16:23:02 +02:00
resolve_addr.rs refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476) 2020-09-15 01:50:52 +02:00
signal.rs refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476) 2020-09-15 01:50:52 +02:00
source_maps.rs refactor(core): support error stack, remove js_check (#7629) 2020-09-22 23:30:03 +02:00
specifier_handler.rs refactor(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +02:00
system_loader.js fix: bundle loader returns exported value (#7764) 2020-09-30 18:51:19 +10:00
system_loader_es5.js fix: bundle loader returns exported value (#7764) 2020-09-30 18:51:19 +10:00
test_runner.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02: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(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
tsc2.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
tsc_config.rs chore: ensure cache is 'valid' during benchmarks (#7770) 2020-10-01 20:32:05 +10:00
upgrade.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
version.rs Move JSON ops to deno_core (#7336) 2020-09-06 02:34:02 +02:00
worker.rs fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02: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.