summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
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
2022-05-05refactor(core): use Box<u8> for ModuleSource.code instead of a String (#14487)Bartek Iwańczuk
2022-05-05chore: update deps (#14416)Luca Casonato
2022-05-03refactor: add core.formatLocationFilename, remove op_format_filename (#14474)Bartek Iwańczuk
This commit moves "op_format_location" to "core/ops_builtin.rs" and removes "Deno.core.createPrepareStackTrace" in favor of "Deno.core.prepareStackTrace". Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2022-04-28Forward 1.21.1 (#14428)Leo Kettmeir
2022-04-27refactor: Remove PrettyJsError and js_error_create_fn (#14378)Nayeem Rahman
This commit: - removes "fmt_errors::PrettyJsError" in favor of "format_js_error" fn - removes "deno_core::JsError::create" and "deno_core::RuntimeOptions::js_error_create_fn" - adds new option to "deno_runtime::ops::worker_host::init"
2022-04-26refactor(core): Remove ErrWithV8Handle (#14394)Nayeem Rahman
2022-04-25cleanup(serde_v8): disambiguate ZeroCopyBuf (#14380)Aaron O'Mullan
2022-04-22chore: bump crates (#14365)Luca Casonato