summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-18Revert "fix(core): unhandled rejection in top-level scope (#15204)" (#15226)Bartek Iwańczuk
This reverts commit 48a7312f3871e3b76c51eb0143ca1c48da43b20c.
2022-07-15refactor: allocate IDs for tests (#14729)Nayeem Rahman
2022-07-15chore: fix Windows specific clippy errors (#15212)David Sherret
2022-07-15feat(cli/test): add `DENO_JOBS` env variable for `test` subcommand (#14929)Mark Ladyshau
2022-07-15Revert "feat: add "unhandledrejection" event support (#12994) (#15080)" (#15210)Bartek Iwańczuk
This reverts commit 1a7259b04b7229f6350a7a7c21b50497b5c80c17.
2022-07-14fix(ext/ffi): allow setting a custom lib path for libtcc.a (#15208)Kayla Washburn
2022-07-15refactor: remove redundant qualification of symbols in Rust (#15201)orvit
2022-07-14feat: add "unhandledrejection" event support (#12994) (#15080)Bartek Iwańczuk
Relanding #12994 This commit adds support for "unhandledrejection" event. This event will trigger event listeners registered using: "globalThis.addEventListener("unhandledrejection") "globalThis.onunhandledrejection" This is done by registering a default handler using "Deno.core.setPromiseRejectCallback" that allows to handle rejected promises in JavaScript instead of Rust. This commit will make it possible to polyfill "process.on("unhandledRejection")" in the Node compat layer. Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-14fix(core): unhandled rejection in top-level scope (#15204)Bartek Iwańczuk
Update "deno_core" to not forward rejection of top level module if it was already handled by appropriate handlers. Co-authored-by: Colin Ihrig cjihrig@gmail.com
2022-07-14fix(cli/dts): allow passing arguments to `WebAssembly` error constructors ↵Liam Murphy
(#15149) These constructors have the same signature as all of JavaScript's other builtin errors.
2022-07-14fix(cli): expand tsc roots when using checkJs (#15164)Rafael Ávila de Espíndola
A JS file can still point to a TS file, so we need to expand the roots in the checkJs case too. Fixes: #15163
2022-07-14chore: upgrade rusty_v8 to v0.46.0 (#15200)Bartek Iwańczuk
2022-07-14feat(lsp): provide import map remapping diags and fixes (#15165)Kitson Kelly
2022-07-13feat(fmt): do not add a newline between a template and its tag (#15195)David Sherret
2022-07-13fix(cli): Improve error message in watch mode (#15184)2shiori17
2022-07-13chore: remove flaky writeSyncWhileAsyncFails test (#15194)David Sherret
2022-07-13chore(cli): remove dead code related to previous tsc emit (#15196)Nayeem Rahman
2022-07-13fix(cli): synchronize async stdio/file reads and writes (#15092)David Sherret
Fixes a regression where async writes and reads could get out of order.
2022-07-13chore: fix flaky `integration::test::meta` (#15192)David Sherret
2022-07-13chore: fix pty_complete_imports test on linux/mac (#15191)David Sherret
2022-07-12fix: fallback to no type checking cache when db file can't be created (#15180)David Sherret
2022-07-12feat(cli/lsp): Sort repl completions (#15171)2shiori17
2022-07-12fix(repl): do not panic for import completions when the import specifier is ↵David Sherret
empty (#15177)
2022-07-12perf: use emit from swc instead of tsc (#15118)David Sherret
2022-07-12chore: forward v1.23.4 release commit to main (#15172)Colin Ihrig
1.23.4 (#15168) Co-authored-by: cjihrig <cjihrig@users.noreply.github.com> Co-authored-by: denobot <33910674+denobot@users.noreply.github.com> Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
2022-07-12fix(ext/http): reading headers with ongoing body reader (#15161)Divy Srivastava
2022-07-12fix(net): don't panic on failed UDS removal (#15157)Colin Ihrig
If a Unix Domain Socket cannot be removed, throw instead of panicing. Fixes: https://github.com/denoland/deno/issues/14213
2022-07-12chore: fix repl::pty_emoji test on linux (#15166)David Sherret
2022-07-12fix(ext/ffi): i64 arg to C mapping was wrong (#15162)Aapo Alasuutari
2022-07-12feat(ext/ffi): Support 64 bit parameters in Fast API calls (#15140)Aapo Alasuutari
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-07-12fix(ext/ffi): trampoline for fast calls (#15139)Divy Srivastava
2022-07-12fix(lsp): enable auto imports (#15145)Kitson Kelly
Fixes: #15111
2022-07-11fix(coverage): better handling of multi-byte characters (#15159)David Sherret
2022-07-11fix(ext/crypto): Adjust typings for `Crypto.getRandomValues()` (#15130)Livia Medeiros
2022-07-11benchmarks: fix exec_time and latency benchmarks (#15155)Bartek Iwańczuk
2022-07-11perf(cli/proc_state): Get error source lines from memory (#15031)Nayeem Rahman
2022-07-11fix: upgrade deno_ast to 0.17 (#15152)David Sherret
2022-07-11refactor: rename run_basic to run_local (#15068)cuobiezi
2022-07-11chore(ci): Run wpt launcher with preinstalled Deno (#15098)Nayeem Rahman
2022-07-11chore(web, worker): Use `DetachedBuffer` for `postMessage` ops (#15133)Andreu Botella
This commit uses `DetachedBuffer` instead of `ZeroCopyBuf` in the ops that back `Worker.prototype.postMessage` and `MessagePort.prototype.postMessage`. This is done because the serialized buffer is then copied to the destination isolate, even though it is internal to runtime code and not used for anything else, so detaching it and transferring it instead saves an unnecessary copy.
2022-07-11chore(core): Deduplicate code related to `op_event_loop_has_more_work` (#15147)Andreu Botella
The `op_event_loop_has_more_work` op, introduced in #14830, duplicates code from `JsRuntime::poll_event_loop`. That PR also added the unused method `JsRuntime::event_loop_has_work`, which is another duplication of that same code, and which isn't used anywhere. This change deduplicates this by renaming `JsRuntime::event_loop_has_work` to `event_loop_pending_state`, and making it the single place to determine what in the event loop is pending. This result is then returned in a struct which is used both in the event loop and in the `op_event_loop_has_more_work` op.
2022-07-10refactor: update comment in diff.rs (#15142)Ikko Ashimine
Github -> GitHub
2022-07-09fix(ext/console): Fix a typo in a warning when .timeEnd is called on an ↵Gamer Omega
unknown timer (#15135)
2022-07-09refactor(ext) Decrease of StringPrototypeReplace recurrent usage (#15058)sevenwithawp
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-09fix(ext/ffi): allow opting out of fast ffi calls (#15131)Divy Srivastava
2022-07-09fix(ext/ffi): Avoid keeping JsRuntimeState RefCell borrowed for event loop ↵Aapo Alasuutari
middleware calls (#15116)
2022-07-08perf(ext/ffi): leverage V8 Fast Calls (#15125)Divy Srivastava
2022-07-08chore: upgrade rusty_v8 to 0.45.0 (#15123)Divy Srivastava
2022-07-07fix(core): deflake WASM termination test (#15103)Bartek Iwańczuk
2022-07-06fix(ext/http) nextRequest return type annotation from ResponseEvent to ↵Zach
RequestEvent (#15100) Fixes #15099