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
José Julián Espina
f2b9c83ceb
Build docs.rs docs with all features enabled ( #3794 )
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
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
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
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
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
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
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>
8 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>
9 months ago
raskad
2bed1fca2f
Add default value for descructing property access arrays ( #3738 )
9 months ago
raskad
861010ec80
Close for-of iterator when the loop body throws ( #3734 )
9 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>
9 months ago
Matthew Stone
4189aa2f16
Fix a few Duration code typos ( #3730 )
9 months ago
Jason Williams
e37fcfe42c
Update Cargo.toml ( #3724 )
...
Update the location of the readme file
9 months ago
Kevin
d985ad9be0
Update temporal_rs and cargo update ( #3717 )
9 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>
9 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>
9 months ago
Kevin
e3b6f6c055
Fix `temporal_rs` in Cargo.toml ( #3702 )
...
* Fix temporal_rs Cargo.toml
* Adjust to dep:temporal_rs
9 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`
9 months ago
raskad
a7c2f5baa7
Implement RegExp `v` flag ( #3695 )
9 months ago
José Julián Espina
01baec0444
Create tool to regenerate the `ABOUT.md` ( #3692 )
9 months ago
Kevin
5ce93b2086
Migrate to `temporal_rs` crate ( #3694 )
...
* Migrate to temporal_rs crate
* Disable Calendar.prototype.dateUntil
9 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>
9 months ago
José Julián Espina
c94e10ddd6
Change `HostEnsureCanCompileStrings` to the new spec ( #3690 )
...
* Change `HostEnsureCanCompileStrings` to the new spec
* Fix test
9 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>
10 months ago
José Julián Espina
cf613c9e65
Implement prototype of `NumberFormat` ( #3669 )
...
* Implement prototype of `NumberFormat`
* Fix clippy
* Misc fixes
* Apply review
10 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>
10 months ago
José Julián Espina
4523eaf0dd
Fix clippy warnings for rustc 1.76 ( #3668 )
10 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>
10 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>
10 months ago
Haled Odat
98dba8a1b9
Implement inline caching tests and cleanup ( #3513 )
10 months ago
José Julián Espina
0f33b98e75
Simplify Temporal APIs ( #3653 )
...
* Simplify Temporal APIs
* cargo fmt
* Unroll deletion of context-free API
10 months ago
Kevin
d423bba8ef
Temporal: Refactor Calendar protocol for `JsObject`s ( #3651 )
...
* Progress on refactor
* fix ToTemporalCalendarSlot on to differentiate builtins
* Fix rebase regression in custom calendar
* Revert to old ToTemporalCalendarSlot
10 months ago
José Julián Espina
e0f35de769
Remove double indirection in module types ( #3640 )
...
* Remove double indirection in module types
* Fix tests
* cargo fmt
10 months ago
José Julián Espina
76e2b7c93d
Implement stage 3 feature "arraybuffer-transfer" ( #3649 )
10 months ago
José Julián Espina
a9aeaa5ba3
Implement resizable buffers ( #3634 )
10 months ago
Kevin
8f7028d112
Temporal: attribute/property and custom calendar fixes ( #3639 )
...
* Fix accessor attribute and toStringTag property
* Fix calendar methods and custom extends calendar calling
* Complete attribute update
* run cargo fmt
10 months ago
Kevin
bb9d6920ab
Build out PlainTime builtin ( #3621 )
10 months ago