summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
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-06refactor(core): Use `&mut Isolate` as an argument in `JsRealm` methods (#15093)Andreu Botella
Currently almost every `JsRealm` method has a `&mut JsRuntime` argument. This argument, however, is only used to get the runtime's corresponding isolate. Given that a mutable reference to the corresponding `v8::Isolate` can be reached from many more places than a mutable reference to the `JsRuntime` (for example, by derefing a V8 scope), changing that will make `JsRealm` usable from many more places than it currently is.
2022-07-05feat(core): Re-export v8 use_custom_libcxx feature (#14475)Arthur Silva
2022-07-05chore: unpin pin project to fix cargo publish (#15085)David Sherret
2022-07-051.23.3 (#15081)denobot
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-07-04Revert "feat: add "unhandledrejection" event support (#12994)" (#15075)Bartek Iwańczuk
This reverts commit f7af0b01a59aaac91473e2f920137004d39a310a.
2022-07-04feat: add "unhandledrejection" event support (#12994)Bartek Iwańczuk
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-01chore: use Rust 1.62.0 (#15028)Bartek Iwańczuk
2022-07-01fix(core): handle exception from Wasm termination (#15014)João Avelino Bellomo Filho
Co-authored-by: Augusto Lenz <augustollenz@gmail.com>
2022-07-01fix(core): remove unsafe in OpsTracker (#15025)Nugine
2022-06-30chore: forward 1.23.2 to main (#15027)David Sherret
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-30chore: upgrade rusty_v8 to 0.44.3 (#15019)Divy Srivastava
2022-06-28feat(web): add beforeunload event (#14830)Colin Ihrig
This commit adds the 'beforeunload' event. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-28feat(ext/ffi): Thread safe callbacks (#14942)Aapo Alasuutari
2022-06-26build: require safety comments on unsafe code (#13870)Luca Casonato
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-06-25fix(modules): Immediately resolve follow-up dyn imports to a dyn imported ↵Andreu Botella
module (#14958) When a dynamically imported module gets resolved, any code that comes after an await import() to that module will continue running. However, if that is the last code in the evaluation of another dynamically imported module, that second module will not resolve until the next iteration of the event loop, even though it does not depend on the event loop at all. When the event loop is being blocked by a long-running operation, such as a long-running timer, or by an async op that might never end, such as with workers or BroadcastChannels, that will result in the second dynamically imported module not being resolved for a while, or ever. This change fixes this by running the dynamic module loading steps in a loop until no more dynamic modules can be resolved.
2022-06-25fix(core): don't panic on non-existent cwd (#14957)Divy Srivastava
Co-authored-by: cjihrig <cjihrig@gmail.com>
2022-06-23v1.23.1 (#14954)Kayla Washburn
1.23.1 (#14952) Co-authored-by: aslilac <aslilac@users.noreply.github.com> Co-authored-by: Kayla Washburn <mckayla@hey.com> Co-authored-by: denobot <33910674+denobot@users.noreply.github.com> Co-authored-by: aslilac <aslilac@users.noreply.github.com>
2022-06-23chore: upgrade rusty_v8 to 0.44.2 (#14947)Bartek Iwańczuk
2022-06-22fix: upgrade swc via deno_ast 0.16 (#14930)David Sherret
2022-06-20perf(core): Cache source lookups (#14816)Nayeem Rahman
Keep a cache for source maps and source lines. We sort of already had a cache argument for source map lookup functions but we just passed an empty map instead of storing it. Extended it to cache source line lookups as well and plugged it into runtime state.
2022-06-20docs: Improve `mod_evaluate` documentation (#14827)Christian Dürr
2022-06-151.23.0 (#14878)denobot
* 1.23.0 * docs(Releases.md): update a few items for 1.23 * docs(Releases.md): revert bad formatting Co-authored-by: aslilac <aslilac@users.noreply.github.com> Co-authored-by: McKayla Washburn <mckayla@hey.com>
2022-06-15chore: upgrade various deps (#14876)Ryan Dahl
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-15upgrade: v8 10.4.132.5 (#14874)Ryan Dahl
2022-06-09chore: Forward v1.22.3 to main (#14835)Colin Ihrig
* 1.22.3 (#14832) * chore: pin swc versions to fix cargo publish Co-authored-by: denobot <33910674+denobot@users.noreply.github.com> Co-authored-by: cjihrig <cjihrig@users.noreply.github.com> Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-07refactor(core): SourceMapGetter doesn't need Send + Sync (#14808)Bartek Iwańczuk
2022-06-07refactor(core): Move Deno.core bindings to ops (#14793)Nayeem Rahman
2022-06-06fix: Format non-error exceptions (#14604)Nayeem Rahman
This commit adds "Deno.core.setFormatExceptionCallback" which can be used to provide custom formatting for errors. It is useful in cases when user throws something that is non-Error (eg. a string, plain object, etc).
2022-06-02chore: Forward v1.22.2 to main (#14785)Bartek Iwańczuk
2022-05-30test(core): Test that sync ops return/throw objects in the right realm (#14750)Andreu Botella
This behavior was introduced in #14019 but wasn't properly tested in that PR.
2022-05-271.22.1Kitson Kelly
Co-authored-by: Kitson Kelly <me@kitsonkelly.com> Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
2022-05-26fix(core): rethrow exception during structured cloning serialization (#14671)Mark Ladyshau
- Introduced optional callback for Deno.core.serialize API, that returns cloning error if there is one. - Removed try/catch in seralize structured clone function and throw error from callback. - Removed "Object with a getter that throws" assertion from WPT.
2022-05-26chore: upgrade rusty_v8 to 0.43.1 (#14713)Bartek Iwańczuk
2022-05-24fix(core): op metrics op_names mismatch (#14716)Aaron O'Mullan
2022-05-20refactor: upgrade to deno_ast 0.15 (#14680)David Sherret
2022-05-181.22.0 (#14657)denobot
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-05-17fix(core): support classifying ENOTDIR (#14646)Aaron O'Mullan
2022-05-17feat(core): deterministic snapshots (#14037)Divy Srivastava
2022-05-15perf(core): optimize encode on large strings (#14619)Aaron O'Mullan
Follow up to serde_v8's #14450
2022-05-15Revert "core: don't include_str extension js code (#10786)" (#14614)Aaron O'Mullan
This reverts commit 10e50a120744de71d6915af4ae93f8231607573d Alternative to #13217, IMO the tradeoffs made by #10786 aren't worth it. It breaks abstractions (crates being self-contained, deno_core without snapshotting etc...) and causes pain points / gotchas for both embedders & devs for a relatively minimal gain in incremental build time ... Closes #11030
2022-05-14chore: upgrade rusty_v8 to 0.42.1 (#14597)Divy Srivastava
2022-05-13chore(runtime): Make some ops in ext and runtime infallible. (#14589)Andreu Botella
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2022-05-12feat(ops): infallible / result-free ops (#14585)Aaron O'Mullan
2022-05-12feat(ops): #[op(v8)] (#14582)Aaron O'Mullan
2022-05-121.21.3 (#14584)Bert Belder
2022-05-08fix(core): avoid panic on non-string Error.name (#14529)Aaron O'Mullan
Fixes #14518
2022-05-07refactor(core): add AssertedModuleType enum (#14501)Bartek Iwańczuk
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-05-051.21.2 (#14508)Colin Ihrig
1.21.2