summaryrefslogtreecommitdiff
path: root/cli/rt/99_main.js
AgeCommit message (Collapse)Author
2020-12-13refactor: deno_runtime crate (#8640)Bartek Iwańczuk
This commit moves Deno JS runtime, ops, permissions and inspector implementation to new "deno_runtime" crate located in "runtime/" directory. Details in "runtime/README.md". Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-12-11refactor(cli): decouple ops from ProgramState and Flags (#8659)Bartek Iwańczuk
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-10refactor(core): stack trace mapping (#8660)Bartek Iwańczuk
This commit adds "Deno.core.createPrepareStackTrace". This function was moved from "cli/rt/40_error_stack.js" to unify handling of stack frames in core (before this PR there was implicit dependency on logic in "core/error.rs::JsError"). Unfortunately formatting logic must still be duplicated in "cli/error.js::PrettyJsError" to provide coloring, but currently there's no solution to this problem. "createPrepareStackTrace" can accept a single argument; a function that takes a location and provides source mapped location back.
2020-12-07refactor(cli/rt): deduplicate code (#8649)Benjamin Gruenbaum
2020-12-01fix(compile): disable source mapping of errors (#8581)Bartek Iwańczuk
This commit disables source mapping of errors for standalone binaries. Since applying source maps relies on using file fetcher infrastructure it's not feasible to use it for standalone binaries that are not supposed to use that infrastructure.
2020-11-26fix: "onload" event order (#8376)Benjamin Gruenbaum
This commit fixes order of events for "onload" event. Previously handler attached using "window.onload" was always fired before handlers added using "addEventListener".
2020-11-08chore: remove dead code (#8298)Bartek Iwańczuk
2020-10-23fix: typos in cli and core (#8082)Toan Nguyen
2020-10-20fix(cli/worker): Print error stacks from the origin Worker (#7987)Nayeem Rahman
Fixes #4728
2020-10-13feat: add alert, confirm, and prompt (#7507)Yoshiya Hinosawa
This commit adds "alert", "confirm" and "prompt" functions from web standards.
2020-10-12fix(cli/rt/main): Add global interface objects (#7875)Nayeem Rahman
2020-10-02refactor(repl): use an inspector session (#7763)Casper Beyer
This ports the REPL over to Rust and makes use of an inspector session to run a REPL on top of any isolate which lets make full use of rustylines various things like validators and completors without having to introduce a bunch of hard to test internal ops and glue code. An accidental but good side effect of this is that the multiple line input we previously had is now an editable multi-line input prompt that is correctly stored in the history as a single entry.
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-19fix(cli/rt): make some web API constructors illegal at runtime (#7468)Nayeem Rahman
2020-09-18refactor: move FileReader to op_crates/web (#7554)Bartek Iwańczuk
2020-09-18refactor: deno_fetch op crate (#7524)Bartek Iwańczuk
2020-09-17refactor: move op_resources and op_close to deno_core (#7539)Bartek Iwańczuk
Moves op_close and op_resources to deno_core::ops and exports them. Adds serde dependency to deno_core and reexports it. Moves JS implementation of those ops to Deno.core and reexports them in Deno.
2020-09-16refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521)Bartek Iwańczuk
Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
2020-09-16simplify global properties (#7502)Ryan Dahl
2020-09-05feat: Implement WebSocket API (#7051)crowlKats
2020-09-04fix: don't expose globalThis.__bootstrap (#7344)Kitson Kelly
2020-08-26refactor: remove OpError, use ErrBox everywhere (#7187)Bert Belder
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-08-19refactor(op_crates/web): move abort signal (#7117)Luca Casonato
2020-08-11feat(web): FileReader API (#6673)Paul Thompson
2020-08-10feat: Stabilize Deno.mainModule (#6993)Nayeem Rahman
2020-08-07Encode op errors as strings instead of numbers (#6977)Bartek Iwańczuk
2020-07-23Rename cli/js2 to cli/rt (#6857)Ryan Dahl