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]
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]
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
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>
9 months ago
Haled Odat
fb8e16b2d9
Cached `this` value ( #3771 )
9 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.
9 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>
9 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
9 months ago
raskad
7987fd8c02
Add missing environment creation in initial iteration of for loop ( #3751 )
9 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()`
9 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
9 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
9 months ago
raskad
abec7b2ec2
Fix parsing of binding identifier in try catch parameters ( #3752 )
9 months ago
raskad
9e9d71ff91
Fix parsing of `async` in for-of loops ( #3745 )
9 months ago
dependabot[bot]
9bc1195d39
Bump futures-lite from 2.2.0 to 2.3.0 ( #3748 )
...
Bumps [futures-lite](https://github.com/smol-rs/futures-lite ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/smol-rs/futures-lite/releases )
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/futures-lite/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: futures-lite
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
dependabot[bot]
7a8e3b9adc
Bump syn from 2.0.52 to 2.0.53 ( #3750 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.52 to 2.0.53.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.52...2.0.53 )
---
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
raskad
06b1c3394d
Fix invalid syntex errors for allower `let` as variable names ( #3743 )
9 months ago
dependabot[bot]
12ee8dd92b
Bump bytemuck from 1.14.3 to 1.15.0 ( #3740 )
...
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.14.3 to 1.15.0.
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.14.3...v1.15.0 )
---
updated-dependencies:
- dependency-name: bytemuck
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>
10 months ago
raskad
2bed1fca2f
Add default value for descructing property access arrays ( #3738 )
10 months ago
raskad
861010ec80
Close for-of iterator when the loop body throws ( #3734 )
10 months ago
dependabot[bot]
18b03fd0ab
Bump thiserror from 1.0.57 to 1.0.58 ( #3735 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.57...1.0.58 )
---
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>
10 months ago
Matthew Stone
4189aa2f16
Fix a few Duration code typos ( #3730 )
10 months ago
Jason Williams
e37fcfe42c
Update Cargo.toml ( #3724 )
...
Update the location of the readme file
10 months ago
Kevin
d985ad9be0
Update temporal_rs and cargo update ( #3717 )
10 months ago
dependabot[bot]
e9d1130386
Bump web-time from 1.0.0 to 1.1.0 ( #3715 )
...
Bumps [web-time](https://github.com/daxpedda/web-time ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/daxpedda/web-time/releases )
- [Changelog](https://github.com/daxpedda/web-time/blob/main/CHANGELOG.md )
- [Commits](https://github.com/daxpedda/web-time/compare/v1.0.0...v1.1.0 )
---
updated-dependencies:
- dependency-name: web-time
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>
10 months ago
dependabot[bot]
2f7fa88bdf
Bump ryu-js from 1.0.0 to 1.0.1 ( #3716 )
...
Bumps [ryu-js](https://github.com/boa-dev/ryu-js ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/boa-dev/ryu-js/releases )
- [Changelog](https://github.com/boa-dev/ryu-js/blob/main/CHANGELOG.md )
- [Commits](https://github.com/boa-dev/ryu-js/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: ryu-js
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>
10 months ago
dependabot[bot]
0614ef10ce
Bump syn from 2.0.51 to 2.0.52 ( #3705 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.51 to 2.0.52.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.51...2.0.52 )
---
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>
10 months ago
Kevin
e3b6f6c055
Fix `temporal_rs` in Cargo.toml ( #3702 )
...
* Fix temporal_rs Cargo.toml
* Adjust to dep:temporal_rs
10 months ago
José Julián Espina
d346bf8364
Split ICU4X data generation from `boa_icu_provider` ( #3682 )
...
* Split ICU4X data generation from `boa_icu_provider`
* npx prettier
* Revert to previous blob version
* Rename new feature to `intl_bundled`
* Replace missing `intl_core` configs
* Add missingg `intl_bundled` cfg
* Enable `intl_bundled` for `boa_wasm`
10 months ago
raskad
a7c2f5baa7
Implement RegExp `v` flag ( #3695 )
10 months ago
José Julián Espina
01baec0444
Create tool to regenerate the `ABOUT.md` ( #3692 )
10 months ago
Kevin
5ce93b2086
Migrate to `temporal_rs` crate ( #3694 )
...
* Migrate to temporal_rs crate
* Disable Calendar.prototype.dateUntil
10 months ago
dependabot[bot]
48099632e8
Bump syn from 2.0.50 to 2.0.51 ( #3693 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.50 to 2.0.51.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.50...2.0.51 )
---
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>
10 months ago
Angelo Ceccato
14b34fe395
Js typed array methods ( #3481 )
...
* implemented jstypedarray find_index
* implemented find_last
* implemented find_last_index
* implemented forEach
* implemented includes
* implemented set
* implemented subarray
* implemented get buffer
* implemented constructor
* implemented copyWithin
* implemented toLocaleString
* implemented toStringTag
* make linter happy
* doc test for buffer and update example
* rename foreach to for_each
* format
---------
Co-authored-by: Angelo Ceccato <angeloceccato@IT-mac-cean-669341865.local>
Co-authored-by: Angelo Ceccato <angeloceccato@IT-mac-cean-669341865-old.local>
10 months ago
José Julián Espina
c94e10ddd6
Change `HostEnsureCanCompileStrings` to the new spec ( #3690 )
...
* Change `HostEnsureCanCompileStrings` to the new spec
* Fix test
10 months ago
dependabot[bot]
75c094a538
Bump syn from 2.0.49 to 2.0.50 ( #3685 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.49 to 2.0.50.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.49...2.0.50 )
---
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>
10 months ago
dependabot[bot]
2cccb3299f
Bump syn from 2.0.48 to 2.0.49 ( #3676 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.48 to 2.0.49.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.48...2.0.49 )
---
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>
10 months ago
dependabot[bot]
77e70f6c49
Bump thiserror from 1.0.56 to 1.0.57 ( #3671 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.56 to 1.0.57.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.56...1.0.57 )
---
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>
11 months ago
José Julián Espina
cf613c9e65
Implement prototype of `NumberFormat` ( #3669 )
...
* Implement prototype of `NumberFormat`
* Fix clippy
* Misc fixes
* Apply review
11 months ago
dependabot[bot]
6a8f0261b1
Bump bytemuck from 1.14.2 to 1.14.3 ( #3666 )
...
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.14.2 to 1.14.3.
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.14.2...v1.14.3 )
---
updated-dependencies:
- dependency-name: bytemuck
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>
11 months ago
José Julián Espina
4523eaf0dd
Fix clippy warnings for rustc 1.76 ( #3668 )
11 months ago
dependabot[bot]
f1e2270f9c
Bump num-integer from 0.1.45 to 0.1.46 ( #3663 )
...
Bumps [num-integer](https://github.com/rust-num/num-integer ) from 0.1.45 to 0.1.46.
- [Changelog](https://github.com/rust-num/num-integer/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-integer/compare/num-integer-0.1.45...num-integer-0.1.46 )
---
updated-dependencies:
- dependency-name: num-integer
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>
11 months ago
dependabot[bot]
1ee0d481ff
Bump bytemuck from 1.14.1 to 1.14.2 ( #3662 )
...
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.14.1 to 1.14.2.
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.14.1...v1.14.2 )
---
updated-dependencies:
- dependency-name: bytemuck
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>
11 months ago
Haled Odat
98dba8a1b9
Implement inline caching tests and cleanup ( #3513 )
11 months ago