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>
7 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>
7 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.
7 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
7 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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
8 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
8 months ago
Linus Groh
c0a961f650
Implement Promise.try() ( #3800 )
...
See: https://github.com/tc39/proposal-promise-try
8 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
8 months ago
Hans Larsen
1825e8b3f2
Fix SimpleModuleLoader on Windows ( #3795 )
8 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>
8 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>
8 months ago
José Julián Espina
f2b9c83ceb
Build docs.rs docs with all features enabled ( #3794 )
8 months ago
Nick Tomlin
676dde7897
chore: Update README link to reflect new site paths ( #3793 )
8 months ago
José Julián Espina
c9d1401a58
Cleanup tester deps and patterns ( #3792 )
...
* Cleanup tester deps and patterns
* cargo fmt + clippy
8 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>
8 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>
8 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>
8 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
8 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
8 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
8 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>
8 months ago
José Julián Espina
5c20010328
Check that `min <= max` in `clamp_finite` ( #3699 )
8 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>
8 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>
8 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>
8 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>
8 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
8 months ago
Hans Larsen
08b0debbfb
Allow deserialization of missing objects properties into Option<> ( #3767 )
...
* Allow deserialization of missing objects properties into Option<>
Currently the TryFromJs derive macro requires that all properties
be defined in the object, whether they are declared as Option<> or
not. This commit makes it so if the field is not found in the
JsObject, we try to deserialize undefined.
This is more in line with JavaScript behaviour.
* Fix cargo fmt
* Fix clippies
* Empty commit to trigger rerun of workflow
* Remove circular dependency between boa_engine and boa_macros
* Missing "::" in macro
---------
Co-authored-by: jedel1043 <jedel0124@gmail.com>
8 months ago
Haled Odat
fb8e16b2d9
Cached `this` value ( #3771 )
8 months ago
Haled Odat
a1e36fc788
Optimize number to PropertyKey conversion ( #3769 )
...
In previous implementation when converting a number to PropertyKey, we
always converted it to string and only when the conversion to
PropertyKey::Index was not possible we returned that string.
8 months ago
dependabot[bot]
7dee9e8c57
Bump express from 4.18.2 to 4.19.2 ( #3768 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2 )
---
updated-dependencies:
- dependency-name: express
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
dependabot[bot]
f922e2efeb
Bump rayon from 1.9.0 to 1.10.0 ( #3763 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.9.0 to 1.10.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/main/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.9.0...rayon-core-v1.10.0 )
---
updated-dependencies:
- dependency-name: rayon
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
dependabot[bot]
9d6ed65a95
Bump indoc from 2.0.4 to 2.0.5 ( #3764 )
...
Bumps [indoc](https://github.com/dtolnay/indoc ) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/compare/2.0.4...2.0.5 )
---
updated-dependencies:
- dependency-name: indoc
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]
1919bc9c54
Bump regex from 1.10.3 to 1.10.4 ( #3766 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.3...1.10.4 )
---
updated-dependencies:
- dependency-name: regex
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]
122bc968a5
Bump syn from 2.0.53 to 2.0.55 ( #3762 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.53 to 2.0.55.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.53...2.0.55 )
---
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
Matthew Stone
48750f361a
Swap to Duration::round from temporal_rs ( #3731 )
...
* Swap to Duration::round from temporal_rs
* Clean up round method and impl From for RoundingMode enum
* Fix build failure
* Fix clippy error
* Respond to comments
* Remove commented line
8 months ago
raskad
7987fd8c02
Add missing environment creation in initial iteration of for loop ( #3751 )
8 months ago
Haled Odat
d3e539593f
Dense array storage variants for `i32` and `f64` ( #3760 )
...
* Implement `i32` dense arrays
* Implement `f64` dense arrays
* Implement debug object indexed elements type function
* Apply review
* Simplify `IndexedProperties::remove()`
8 months ago
Hans Larsen
1c6a095196
Add a try_from_js implementation for Vec<T> (accept any Array-like) ( #3755 )
...
* Add a try_from_js implementation for Vec<T> (accept any Array-like)
* Use safe conversion to usize
* Fix typing compile error
* Fix clippies and fmt
* Remove println from test
* Add a negative test
8 months ago
dependabot[bot]
041a030481
Bump webpack from 5.90.3 to 5.91.0 ( #3757 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.90.3 to 5.91.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.90.3...v5.91.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
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
José Julián Espina
e375090d26
Change dependabot interval to weekly ( #3758 )
8 months ago
José Julián Espina
03d972957d
Apply new clippy lints for rustc 1.77 ( #3759 )
...
* First bump fixes
* Apply automatic clippy lints
* cargo fmt
* Apply manual lints
8 months ago
raskad
abec7b2ec2
Fix parsing of binding identifier in try catch parameters ( #3752 )
8 months ago
dependabot[bot]
ddac762d0a
Bump toml from 0.8.11 to 0.8.12 ( #3754 )
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.8.11 to 0.8.12.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.11...toml-v0.8.12 )
---
updated-dependencies:
- dependency-name: toml
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