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]
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
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
raskad
9e9d71ff91
Fix parsing of `async` in for-of loops ( #3745 )
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]
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>
8 months ago
raskad
06b1c3394d
Fix invalid syntex errors for allower `let` as variable names ( #3743 )
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
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>
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
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>
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]
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>
9 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>
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
raskad
6ddc2b47ff
Fix line terminators in template strings ( #3641 )
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
José Julián Espina
c6f02b607b
Ignore `Cargo.lock` in fuzzer ( #3636 )
10 months ago
Kevin
bb9d6920ab
Build out PlainTime builtin ( #3621 )
10 months ago