summaryrefslogtreecommitdiff
path: root/cli/rt
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-07perf: use minimal op with performance.now() (#8619)Steven Guerrero
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-30feat(unstable): add cbreak option to setRaw (#8383)Marcus Hultman
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-25fix(websocket): Fix PermissionDenied error being caught in constructor (#8402)crowlKats
2020-11-23fix(cli): add file URL support for Deno.readLink (#8423)William Perron
2020-11-21fix: "cloneValue" should return a Set when given a Set (#7972)Anonymous
2020-11-14fix: fix various global objects constructor length (#8373)Benjamin Gruenbaum
This commit changes various Web APIs constructors to match their signature in the browser.
2020-11-13refactor: deno_crypto op crate (#7956)Divy Srivastava
This commit factors out "deno_crypto" op crate. "rand" crate dependency was consequently moved to "deno_crypto" crate and reexported.
2020-11-10fix(web/worker) define event handlers in DOM order (#8334)Benjamin Gruenbaum
2020-11-10fix(cli/rt): dom handler order in websocket (#8320)Benjamin Gruenbaum
2020-11-08chore: remove dead code (#8298)Bartek Iwańczuk
2020-11-03build: migrate to dlint (#8176)Bartek Iwańczuk
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
2020-11-03fix(prompt): fix display of non-ASCII characters on Windows (#8199)Yoshiya Hinosawa
2020-11-02refactor(cli): migrate runtime compile/bundle to new infrastructure (#8192)Kitson Kelly
Fixes #8060
2020-10-30fix: Deno.fdata(), Deno.fdatasync() (#8193)Bartek Iwańczuk
These APIs were stabilized in 1.5.0, but were never added to the "stable" Deno namespace. This commit fixes that.
2020-10-29fix(cli): prompt works with windows eol and eof (#8149)Sander Hahn
2020-10-27fix(cli): handle URL paths in Deno.mkdir() (#8140)Ross Weir
2020-10-27fix(op_crates/web): Expose event properties in console output (#8103)Ross Weir
Fixes #8073
2020-10-26feat(unstable): add Deno.systemCpuInfo() (#7774)Elias Sjögreen
2020-10-23fix: typos in cli and core (#8082)Toan Nguyen
2020-10-22fix(cli/rt/websockets): Only add Sec-WebSocket-Protocol if it's not empty ↵nerix
(#7936)
2020-10-20fix(cli): use rid getter for stdio (#8014)Casper Beyer
This changes the rid of Deno.stdin, Deno.stdout, Deno.stderr from a mutable property into a getter to match the rid semantics of Deno.File.
2020-10-20fix(cli/worker): Print error stacks from the origin Worker (#7987)Nayeem Rahman
Fixes #4728
2020-10-20fix(cli/rt/performance): check for object props in startOrMeasureOptions ↵Jesse Jackson
before throwing (#7884) Fixes #7876 Co-authored-by: Ryan Dahl <ry@tinyclouds.org> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-10-15feat(cli/ops): add the sleep_sync op (#7974)William Perron
2020-10-15Reland feat(cli/console): inspect with colors regardless of Deno.noColor (#7976)Bartek Iwańczuk
2020-10-14Revert "feat(cli/console): inspect with colors regardless of Deno.noColor ↵Bartek Iwańczuk
(#7778)" (#7973) This reverts commit f75bd89aff7cffafceb394d629995479af54a156.
2020-10-14feat(cli/console): inspect with colors regardless of Deno.noColor (#7778)TTtie
This commit adds the ability for users to inspect items stylized with ANSI colors regardless of the value of Deno.noColor.
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-11fix(console): fix inspection of Function (#7930)Yoshiya Hinosawa
This commit fixes the inspection of functions. The current implementation gets the name of the type of the function from "f.__proto__.constructor.name", and it throws when the prototype is set to null. This commit checks the prototype before accessing its constructor name and uses the generic name 'Function' if the prototype is not available.
2020-10-11fix(cli/console): only inspect getters with option (#7830)Casper Beyer
2020-10-08fix(cli/rt/error_stack): Improve message line formatting (#7860)Nayeem Rahman
2020-10-07fix(cli/rt/console): Don't require a prototype to detect a class instance ↵Nayeem Rahman
(#7869)
2020-10-05perf(cli/console): Don't add redundant ANSI codes (#7823)Nayeem Rahman
2020-10-05fix(core): handle unregistered errors in core better (#7817)Kitson Kelly
2020-10-04docs: end sentences with a period in markdown (#7813)Trivikram Kamat
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-10-01fix(cli/console): Catch and format getter errors (#7766)Nayeem Rahman
2020-09-30feat(cli/console): Add Deno.InspectOptions::colors (#7742)Nayeem Rahman
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
2020-09-29fix(websocket): add missing close events and remove extra error event (#7606)crowlKats
2020-09-27fix: net listen crashes on explicit undefined hostname (#7706)Giorgi Rostomashvili
2020-09-26refactor: prune unneeded JS code (#7689)Bartek Iwańczuk
2020-09-25fix(cli): customInspect works on functions (#7670)Kitson Kelly
Fixes #7650
2020-09-23fix(cli/console): quote non-alphanumeric symbols (#7641)Casper Beyer
This quotes and escapes symbol descriptions that contains characters outside of the basic alpha-numeric identifier range.