dependabot[bot]
c32e3cb57a
Bump serde from 1.0.199 to 1.0.201 ( #3846 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.199 to 1.0.201.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.199...v1.0.201 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
ce57ff1ed4
Bump num-traits from 0.2.18 to 0.2.19 ( #3840 )
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.18 to 0.2.19.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.18...num-traits-0.2.19 )
---
updated-dependencies:
- dependency-name: num-traits
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
raskad
09c08c5435
Switch from actions-rs/toolchain to dtolnay/rust-toolchain ( #3845 )
8 months ago
19年梦醒
12adec5eed
replace js_str with js_string ( #3836 )
8 months ago
Haled Odat
5af3f7c079
Fix Rust 1.78.0 Clippy lints ( #3838 )
8 months ago
Haled Odat
3f6ee2276c
Implement Latin1 JsString ( #3450 )
8 months ago
Haled Odat
6febf7eda0
Implement object keys access ( #3832 )
8 months ago
dependabot[bot]
4452c03bd6
Bump serde from 1.0.198 to 1.0.199 ( #3833 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.198 to 1.0.199.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.198...v1.0.199 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
1c8400ad04
Bump hashbrown from 0.14.3 to 0.14.5 ( #3834 )
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.14.3 to 0.14.5.
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.14.3...v0.14.5 )
---
updated-dependencies:
- dependency-name: hashbrown
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
f469096390
Bump either from 1.10.0 to 1.11.0 ( #3835 )
...
Bumps [either](https://github.com/rayon-rs/either ) from 1.10.0 to 1.11.0.
- [Commits](https://github.com/rayon-rs/either/compare/1.10.0...1.11.0 )
---
updated-dependencies:
- dependency-name: either
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
Haled Odat
6ee208fc5d
Decouple `Context` from `ByteCompiler` ( #3829 )
...
* Decouple GlobalDeclarationInstantiation from Context
* Decouple EvalDeclarationInstantiation from Context
* Remove `Context` from `ByteCompiler`
* Fix typo
* Apply review
8 months ago
Hans Larsen
61567687cf
Implement TryFromJs for Either<L, R> ( #3822 )
...
* Implement TryFromJs for Either<L, R>
* Add explicit feature in Cargo.toml
8 months ago
dependabot[bot]
9ec0a13b4d
Bump serde_json from 1.0.115 to 1.0.116 ( #3825 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.115 to 1.0.116.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.115...v1.0.116 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
c9d914ca55
Bump syn from 2.0.59 to 2.0.60 ( #3827 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.59 to 2.0.60.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.59...2.0.60 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
0cc98fb1a1
Bump proc-macro2 from 1.0.80 to 1.0.81 ( #3826 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.80...1.0.81 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
7f079ae689
Bump thiserror from 1.0.58 to 1.0.59 ( #3824 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.58...1.0.59 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
0f38f214ca
Bump serde from 1.0.197 to 1.0.198 ( #3823 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.197 to 1.0.198.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.197...v1.0.198 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
f5d050ef39
Bump rustls from 0.22.3 to 0.22.4 ( #3821 )
...
Bumps [rustls](https://github.com/rustls/rustls ) from 0.22.3 to 0.22.4.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.22.3...v/0.22.4 )
---
updated-dependencies:
- dependency-name: rustls
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
Hans Larsen
f955248732
Add a ContextData struct to inject host defined types from the context ( #3802 )
...
* Add more utility traits and funtions to boa_interop
* cargo clippy
* Readd the safe version for Fn which also implements Copy
* Use a new trait for converting a Rust type to a JsResult<JsValue>
* cargo clippy
* Add a test for returning result and Fn()
* Seal both IntoJsFunction and IntoJsFunctionUnsafe
* Try Borrowing and return a nice error instead of panicking
* Address comments
* Rename into_js_function to into_js_function_copied
* Move TryIntoJsResult to boa_engine
* Move JsRest to be at the end only of arguments and add JsAll
* use from_copy_closure and remove unsafe
* Add a HostDefined struct to grab host defined in the argument list
* cargo fmt and clippy
* Explain why we need Clone
* Remove the vector from JsRest<> and use a reference
* Add HostDefined to context as Data, and rename the injector in boa_interop
* Use TypeError instead if the type was not found in context
* Update core/interop/src/lib.rs
Co-authored-by: José Julián Espina <jedel0124@gmail.com>
* cargo fmt
* cargo fmt
---------
Co-authored-by: José Julián Espina <jedel0124@gmail.com>
8 months ago
Haled Odat
261e264b01
Fix order of `ToString` call in Function constructor ( #3820 )
...
The `ToString` method was being called on the body before the paramater
list, this caused some test262 tests to fail.
8 months ago
Hans Larsen
5a4d9774ed
Add an embed_module!() macro to boa_interop ( #3784 )
...
* Add an embed_module!() macro to boa_interop
The macro creates a ModuleLoader that includes all JS files from a directory.
* Add description of function
* Run prettier
* Remove reference to a unaccessible crate
* Remove one more reference to a unaccessible crate
* Disable test that plays with paths on Windows
* Block the whole test module instead of just the fn
* This is a bit insane
* Replace path separators into JavaScript specifier separators
* cargo fmt
* cargo fmt part deux
* fix some issues with relative path and pathing on windows
* fix module resolver when there are no base path
* use the platform's path separator
* cargo fmt
* prettier
* Remove caching of the error
* Pedantic clippy gonna pedant
8 months ago
dependabot[bot]
bee5a5ccea
Bump syn from 2.0.58 to 2.0.59 ( #3817 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.58 to 2.0.59.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.58...2.0.59 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
07cbacffdf
Bump serde_repr from 0.1.18 to 0.1.19 ( #3814 )
...
Bumps [serde_repr](https://github.com/dtolnay/serde-repr ) from 0.1.18 to 0.1.19.
- [Release notes](https://github.com/dtolnay/serde-repr/releases )
- [Commits](https://github.com/dtolnay/serde-repr/compare/0.1.18...0.1.19 )
---
updated-dependencies:
- dependency-name: serde_repr
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
ef5c3f18e3
Bump getrandom from 0.2.13 to 0.2.14 ( #3815 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.13 to 0.2.14.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.13...v0.2.14 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
c4ec061255
Bump time from 0.3.34 to 0.3.36 ( #3816 )
...
Bumps [time](https://github.com/time-rs/time ) from 0.3.34 to 0.3.36.
- [Release notes](https://github.com/time-rs/time/releases )
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md )
- [Commits](https://github.com/time-rs/time/compare/v0.3.34...v0.3.36 )
---
updated-dependencies:
- dependency-name: time
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
c63e8e2d37
Bump quote from 1.0.35 to 1.0.36 ( #3813 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.35...1.0.36 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
0b2757610a
Bump baptiste0928/cargo-install from 3.0.1 to 3.1.0 ( #3812 )
...
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install ) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/baptiste0928/cargo-install/releases )
- [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md )
- [Commits](https://github.com/baptiste0928/cargo-install/compare/v3.0.1...v3.1.0 )
---
updated-dependencies:
- dependency-name: baptiste0928/cargo-install
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
Hans Larsen
d915c9bef7
Add functions to create modules from a JSON value ( #3804 )
...
* Add functions to create modules from a JSON value
* Move json_module to Module::from_value_as_default
* Flag the whole json module behind the json feature
* Rename and add doc
9 months ago
Hans Larsen
0d7018f16c
Add a new type Convert<> to convert values ( #3786 )
...
* Add TryFromJs for more types
* Add a new type Coerce<> to coerce values
This can be used to transform values in to coerced versions by
using the type system and TryFromJs.
* Fix build error
* Rename Coerce<> to Convert<>
* replace missed coerce to Convert
* cargo fmt and clippy
9 months ago
Linus Groh
c0a961f650
Implement Promise.try() ( #3800 )
...
See: https://github.com/tc39/proposal-promise-try
9 months ago
Hans Larsen
9702501f09
Add more utility traits and funtions to boa_interop ( #3773 )
...
* Add more utility traits and funtions to boa_interop
* cargo clippy
* Readd the safe version for Fn which also implements Copy
* Use a new trait for converting a Rust type to a JsResult<JsValue>
* cargo clippy
* Add a test for returning result and Fn()
* Seal both IntoJsFunction and IntoJsFunctionUnsafe
* Try Borrowing and return a nice error instead of panicking
* Address comments
* Rename into_js_function to into_js_function_copied
* Move TryIntoJsResult to boa_engine
* Move JsRest to be at the end only of arguments and add JsAll
* use from_copy_closure and remove unsafe
9 months ago
Hans Larsen
1825e8b3f2
Fix SimpleModuleLoader on Windows ( #3795 )
9 months ago
dependabot[bot]
848103ae3f
Bump getrandom from 0.2.12 to 0.2.13 ( #3796 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.12 to 0.2.13.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.12...v0.2.13 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
755c213bb6
Bump comfy-table from 7.1.0 to 7.1.1 ( #3797 )
...
Bumps [comfy-table](https://github.com/nukesor/comfy-table ) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/nukesor/comfy-table/releases )
- [Changelog](https://github.com/Nukesor/comfy-table/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nukesor/comfy-table/compare/v7.1.0...v7.1.1 )
---
updated-dependencies:
- dependency-name: comfy-table
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
José Julián Espina
f2b9c83ceb
Build docs.rs docs with all features enabled ( #3794 )
9 months ago
Nick Tomlin
676dde7897
chore: Update README link to reflect new site paths ( #3793 )
9 months ago
José Julián Espina
c9d1401a58
Cleanup tester deps and patterns ( #3792 )
...
* Cleanup tester deps and patterns
* cargo fmt + clippy
9 months ago
Hans Larsen
958045c9ac
Properly resolve paths in SimpleModuleLoader and add path to Referrer::Script ( #3791 )
...
* Properly resolve paths in SimpleModuleLoader and add path to Referrer::Script
* Add missing example
* Carry active runnable on frame push
* Duplicate the tests with proper paths for Windows/Unix
* Use the right root for absolute referrers
* ugh cargo fmt
* Limit doctest to unix
* Limit doctest to unix, for real
* cargo fmt
---------
Co-authored-by: jedel1043 <jedel0124@gmail.com>
9 months ago
dependabot[bot]
0b3df5781e
Bump indexmap from 2.2.5 to 2.2.6 ( #3789 )
...
Bumps [indexmap](https://github.com/indexmap-rs/indexmap ) from 2.2.5 to 2.2.6.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.2.5...2.2.6 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
c78e9f0871
Bump syn from 2.0.57 to 2.0.58 ( #3788 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.57 to 2.0.58.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.57...2.0.58 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
José Julián Espina
ffbf794577
Remove references to dev docs and npm dependencies ( #3787 )
...
* Remove references to dev docs and npm dependencies
* Remove webpack config
9 months ago
Hans Larsen
cb5cea6d26
Add a path to Module (and expose it in Referrer) ( #3783 )
...
* Add an integration test for relative imports on SimpleModuleLoader
* Add a path to Module (and expose it in Referrer)
This allows SimpleModuleLoader to resolve relative to the current
file (which this commit also does).
Fixes #3782
* cargo clippy and fmt
* prettier
* Fix merge error
9 months ago
Hans Larsen
37db6a4911
Add a boa_interop crate ( #3772 )
...
* Add a boa_interop crate
This crate will contain types and functions to help integrating
boa in Rust projects, making it easier to interop between the
host and the JavaScript code.
See https://github.com/boa-dev/boa/discussions/3770
* Remove unnecessary into_iter()
* cargo fmt
* cargo clippy
* Make IntoJsFunction unsafe
* Remove unused code
9 months ago
Haled Odat
b1f07805c3
Optimize Regex match check ( #3779 )
...
* Initial optimization
* Fix sticky flag
* Apply review
* Update regress to 0.9.1
* Add spec deviation comments
---------
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com>
9 months ago
José Julián Espina
5c20010328
Check that `min <= max` in `clamp_finite` ( #3699 )
9 months ago
dependabot[bot]
2b7c7050fb
Bump serde_json from 1.0.114 to 1.0.115 ( #3775 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.114 to 1.0.115.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.114...v1.0.115 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
7659977c82
Bump clap from 4.5.3 to 4.5.4 ( #3776 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.3...v4.5.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
23775954fd
Bump syn from 2.0.55 to 2.0.57 ( #3777 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.55 to 2.0.57.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.55...2.0.57 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
dependabot[bot]
3059408a62
Bump trybuild from 1.0.90 to 1.0.91 ( #3778 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.90...1.0.91 )
---
updated-dependencies:
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
Jason Williams
e754df35f5
don't run test262 on push ( #3774 )
...
* don't run test262 on push anymore
* wrap in an expression
* remove writing to the gh-pages branch
* checkout data repo for comparison
* check dirs
* add back in PR checks
9 months ago