Kevin Ness
2bc63120d5
Misspelled permissions in file ( #4041 )
1 week ago
Kevin Ness
1ddfcd5afe
Use upload-rust-binary-action for nightly release ( #4040 )
2 weeks ago
Hans Larsen
e892d94f8d
Add a JsPromise::from_result for convenience ( #4039 )
2 weeks ago
dependabot[bot]
b8ea9bdb4e
Bump the rust-dependencies group with 3 updates ( #4036 )
...
Bumps the rust-dependencies group with 3 updates: [arbitrary](https://github.com/rust-fuzz/arbitrary ), [futures-lite](https://github.com/smol-rs/futures-lite ) and [url](https://github.com/servo/rust-url ).
Updates `arbitrary` from 1.3.2 to 1.4.1
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.3.2...v1.4.1 )
Updates `futures-lite` from 2.4.0 to 2.5.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.4.0...v2.5.0 )
Updates `url` from 2.5.2 to 2.5.3
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.5.2...v2.5.3 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: futures-lite
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 weeks ago
dependabot[bot]
e416a31830
Bump thiserror from 1.0.67 to 1.0.69 ( #4037 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.67 to 1.0.69.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.67...1.0.69 )
---
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>
2 weeks ago
CrazyboyQCD
f30514b085
Some string optimizations ( #4030 )
...
* chore: replace `js_str` with `js_string`
* chore: replace `boolean`'s `to_string` with literal
* chore: remove unnecessary `to_string`
* chore: fix lint and format
* chore: add feature gate to import `js_str`
* chore: change `get_typed_fn`'s name to `JsString`
* chore: replace js_str with js_string(cli)
* chore: replace js_str with js_string(`try_into_js`)
* chore: replace js_str with js_string(`Console`)
* chore: fix lint
* perf: use more efficient `LazyLock` on `RAW_STATICS_CACHE`
* chore: move `js_str` together with other imports
2 weeks ago
Kevin Ness
5ea44d8c40
Wrap the mv command in quotations and add echo for testing ( #4032 )
2 weeks ago
Kevin Ness
93192765af
Patch the indentation on nightly_build.yml ( #4028 )
2 weeks ago
Hans Larsen
e37dc418ec
Option::None should try into Undefined, not Null ( #4029 )
...
This PR also include removal of useless path JsResult:: for Ok and
Err, which are preluded already.
3 weeks ago
dependabot[bot]
24e2481503
Bump the rust-dependencies group with 5 updates ( #4027 )
...
Bumps the rust-dependencies group with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [serde](https://github.com/serde-rs/serde ) | `1.0.213` | `1.0.214` |
| [syn](https://github.com/dtolnay/syn ) | `2.0.85` | `2.0.87` |
| [thiserror](https://github.com/dtolnay/thiserror ) | `1.0.65` | `1.0.67` |
| [sys-locale](https://github.com/1Password/sys-locale ) | `0.3.1` | `0.3.2` |
| [futures-lite](https://github.com/smol-rs/futures-lite ) | `2.3.0` | `2.4.0` |
Updates `serde` from 1.0.213 to 1.0.214
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.213...v1.0.214 )
Updates `syn` from 2.0.85 to 2.0.87
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.85...2.0.87 )
Updates `thiserror` from 1.0.65 to 1.0.67
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.65...1.0.67 )
Updates `sys-locale` from 0.3.1 to 0.3.2
- [Release notes](https://github.com/1Password/sys-locale/releases )
- [Changelog](https://github.com/1Password/sys-locale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/1Password/sys-locale/compare/v0.3.1...v0.3.2 )
Updates `futures-lite` from 2.3.0 to 2.4.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.3.0...v2.4.0 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: sys-locale
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: futures-lite
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 weeks ago
CrazyboyQCD
4983471ff6
Some optimizations on `Error` ( #4020 )
...
* chore: mark `JsNativeError`'s constructors const
* chore: add associated constants
* chore: replace const method calls in `js_error` with corresponding constants
* fix: use correct method
* perf: change error's `message` type to `Cow<'static str>`
* chore: fix lint
3 weeks ago
Jason Williams
265dca3a11
add nightly build ( #4026 )
...
* add nightly build
* add line on the end
3 weeks ago
Nikita-str
b60b1039e3
`TryFromJs` from `JsMap` for `HashMap` & `BtreeMap` ( #3998 )
...
* `TryFromJs` from `JsMap` for `HashMap` & `BtreeMap`
* fix `clippy` warn
* use `IteratorResult` instead of `as_object`
* `JsMap` impl `rust_for_each`
* fix: initial `JsMap` can be changed in `for_each`
* better naming
3 weeks ago
Jason Williams
d8ec97c85f
use with_capacity to reduce re-allocations fixes #3896 ( #3961 )
...
* use with_capacity to reduce allocations
* Update to use const generics over runtime param
* add comment above with_capacity
* - move OWN_PROPS
- add profiling marks in more places
* use const in trait instead
3 weeks ago
Hans Larsen
d3dbb4ad02
console.debug() should use a debug Logger method ( #4019 )
3 weeks ago
dependabot[bot]
23e8ba29be
Bump the rust-dependencies group with 5 updates ( #4025 )
...
Bumps the rust-dependencies group with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [regex](https://github.com/rust-lang/regex ) | `1.11.0` | `1.11.1` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.210` | `1.0.213` |
| [syn](https://github.com/dtolnay/syn ) | `2.0.82` | `2.0.85` |
| [proc-macro2](https://github.com/dtolnay/proc-macro2 ) | `1.0.88` | `1.0.89` |
| [thiserror](https://github.com/dtolnay/thiserror ) | `1.0.64` | `1.0.65` |
Updates `regex` from 1.11.0 to 1.11.1
- [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.11.0...1.11.1 )
Updates `serde` from 1.0.210 to 1.0.213
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.210...v1.0.213 )
Updates `syn` from 2.0.82 to 2.0.85
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.82...2.0.85 )
Updates `proc-macro2` from 1.0.88 to 1.0.89
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.88...1.0.89 )
Updates `thiserror` from 1.0.64 to 1.0.65
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.64...1.0.65 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 weeks ago
Nikita-str
905e4c6f90
`TryIntoJs` trait and derive macro for it ( #3999 )
...
* #3874 : `TryIntoJs` impl for primitive types
* #3874 : `#[derive(TryIntoJs)]`
is it ok to use `create_data_property_or_throw`?
in other words, am I create an object correctly?
* #3874 : some (but not enough) tests
* #3874 : fix `TryintoJs` derive bug in multi attr case
* #3874 : `TryIntoJs` derive macro example
* fix paths in derive macro
* make lint happy
4 weeks ago
Hans Larsen
acd1a8d9ab
Add a display_lossy() to write a JsString lossily ( #4023 )
...
* Add a display_lossy() to write a JsString lossily
* cargo fmt
4 weeks ago
dependabot[bot]
e22a703dfd
Bump the rust-dependencies group across 1 directory with 8 updates ( #4021 )
...
* Bump the rust-dependencies group across 1 directory with 8 updates
Bumps the rust-dependencies group with 8 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.19` | `4.5.20` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.128` | `1.0.132` |
| [trybuild](https://github.com/dtolnay/trybuild ) | `1.0.99` | `1.0.101` |
| [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) | `0.2.93` | `0.2.95` |
| [wasm-bindgen-test](https://github.com/rustwasm/wasm-bindgen ) | `0.3.43` | `0.3.45` |
| [syn](https://github.com/dtolnay/syn ) | `2.0.79` | `2.0.82` |
| [proc-macro2](https://github.com/dtolnay/proc-macro2 ) | `1.0.86` | `1.0.88` |
| [bytemuck](https://github.com/Lokathor/bytemuck ) | `1.18.0` | `1.19.0` |
Updates `clap` from 4.5.19 to 4.5.20
- [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/clap_complete-v4.5.19...clap_complete-v4.5.20 )
Updates `serde_json` from 1.0.128 to 1.0.132
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/1.0.128...1.0.132 )
Updates `trybuild` from 1.0.99 to 1.0.101
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.99...1.0.101 )
Updates `wasm-bindgen` from 0.2.93 to 0.2.95
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.93...0.2.95 )
Updates `wasm-bindgen-test` from 0.3.43 to 0.3.45
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
Updates `syn` from 2.0.79 to 2.0.82
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.79...2.0.82 )
Updates `proc-macro2` from 1.0.86 to 1.0.88
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.86...1.0.88 )
Updates `bytemuck` from 1.18.0 to 1.19.0
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.18.0...v1.19.0 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: wasm-bindgen-test
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix wasm dependencies
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: José Julián Espina <julian.espina@canonical.com>
1 month ago
Hans Larsen
94d08fe4e6
Add a URL class to boa_runtime ( #4004 )
...
* Add a URL class (with caveats)
Some methods are NOT currently supported (some don' make sense
outside of a browser context). They are still implemented but
will throw a JavaScript Error.
Supported methods should follow the specification perfectly.
* Adding tests and using url::quirks for simpler getters/setters
* clippies
* Address comments
1 month ago
Nikita-str
67f4884d9b
`JsValue::to_json` fix integer property keys ( #4011 )
...
* #3923 : `to_json` fix integer properties key
* some refactoring
1 month ago
dependabot[bot]
c9d1b5d805
Bump rustsec/audit-check from 1.4.1 to 2.0.0 ( #4012 )
...
Bumps [rustsec/audit-check](https://github.com/rustsec/audit-check ) from 1.4.1 to 2.0.0.
- [Release notes](https://github.com/rustsec/audit-check/releases )
- [Changelog](https://github.com/rustsec/audit-check/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustsec/audit-check/compare/v1.4.1...v2.0.0 )
---
updated-dependencies:
- dependency-name: rustsec/audit-check
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot]
fcd4422b28
Bump the rust-dependencies group with 4 updates ( #4015 )
...
Bumps the rust-dependencies group with 4 updates: [clap](https://github.com/clap-rs/clap ), [indexmap](https://github.com/indexmap-rs/indexmap ), [once_cell](https://github.com/matklad/once_cell ) and [futures-util](https://github.com/rust-lang/futures-rs ).
Updates `clap` from 4.5.18 to 4.5.19
- [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/clap_complete-v4.5.18...clap_complete-v4.5.19 )
Updates `indexmap` from 2.5.0 to 2.6.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.5.0...2.6.0 )
Updates `once_cell` from 1.20.1 to 1.20.2
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.20.1...v1.20.2 )
Updates `futures-util` from 0.3.30 to 0.3.31
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.30...0.3.31 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: futures-util
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot]
9d7153cdf3
Bump the rust-dependencies group with 4 updates ( #4013 )
...
Bumps the rust-dependencies group with 4 updates: [once_cell](https://github.com/matklad/once_cell ), [regex](https://github.com/rust-lang/regex ), [syn](https://github.com/dtolnay/syn ) and [portable-atomic](https://github.com/taiki-e/portable-atomic ).
Updates `once_cell` from 1.19.0 to 1.20.1
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.19.0...v1.20.1 )
Updates `regex` from 1.10.6 to 1.11.0
- [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.6...1.11.0 )
Updates `syn` from 2.0.77 to 2.0.79
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.77...2.0.79 )
Updates `portable-atomic` from 1.8.0 to 1.9.0
- [Release notes](https://github.com/taiki-e/portable-atomic/releases )
- [Changelog](https://github.com/taiki-e/portable-atomic/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/portable-atomic/compare/v1.8.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: portable-atomic
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
Nikita-str
628e31cf62
#4009 : eq bug fix + tests ( #4010 )
2 months ago
dependabot[bot]
4ed2bad994
Bump the rust-dependencies group with 3 updates ( #4003 )
...
Bumps the rust-dependencies group with 3 updates: [clap](https://github.com/clap-rs/clap ), [thiserror](https://github.com/dtolnay/thiserror ) and [portable-atomic](https://github.com/taiki-e/portable-atomic ).
Updates `clap` from 4.5.17 to 4.5.18
- [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/clap_complete-v4.5.17...clap_complete-v4.5.18 )
Updates `thiserror` from 1.0.63 to 1.0.64
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.63...1.0.64 )
Updates `portable-atomic` from 1.7.0 to 1.8.0
- [Release notes](https://github.com/taiki-e/portable-atomic/releases )
- [Changelog](https://github.com/taiki-e/portable-atomic/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/portable-atomic/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: portable-atomic
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
Hans Larsen
e6a695036b
Add context to the console Logger trait ( #4005 )
...
This is not backward compatible but should have minimal impact.
This is also more future proof by passing the ConsoleState
which is more opaque and allows us to update the way the
console object is constructed and passed.
2 months ago
it-a-me
bea8369620
docs: Fix link to examples ( #4007 )
2 months ago
raskad
aa09d98787
Implement scope analysis and local variables ( #3988 )
...
* Remove unnecessary compile time environment clones
* Remove compile time environments from every runtime DeclarativeEnvironment
* Implement scope analysis and local variables
* fix docs and fuzzer errors
* Apply suggestions
* Align `parse_script` and `parse_module` arguments
* Fix fuzzer
2 months ago
Hans Larsen
8438ad21cd
Add TryFromJs for TypedJsFunction and more tests ( #3981 )
...
* Add TryFromJs for TypedJsFunction and more tests
Includes adding TryFromJs for "()".
* Fix clippies and fmt
* Prettier
* Add From<TypedJsFunction> for JsValue to allow conversion
* Implement comments
* clippies
2 months ago
Hans Larsen
ddb1901d65
Add TextEncoder, TextDecoder implementations to boa_runtime ( #3994 )
...
* Add a TextEncoder implementation to boa_runtime
* Add a TextDecoder implementation as well.
2 months ago
José Julián Espina
6d8be0aa9b
Improve CI concurrency and fix macos release ( #3996 )
2 months ago
Haled Odat
c480a42230
Implement register allocation ( #3942 )
...
* Implement register allocation
* Apply review
* Update core/engine/src/vm/opcode/rest_parameter/mod.rs
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com>
---------
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com>
2 months ago
José Julián Espina
4db0388e53
Update changelog for v0.19.1 ( #3995 )
2 months ago
Hans Larsen
dd32789ae4
Add tests from WPT and fix them in the Console ( #3979 )
2 months ago
Hans Larsen
50356e9518
Add TryIntoJsResult for vectors ( #3993 )
...
* Add TryIntoJsResult for vectors
This way JsFunction made with into_js_function can return vectors.
* Fix build error
2 months ago
Hans Larsen
affa6527c1
Add a way for js_error! macro to create native errors with message ( #3971 )
...
* Add a way for js_error! macro to create native errors with message
* Fix docs
2 months ago
Hans Larsen
c21f10efae
A simple module loader from a function ( #3932 )
...
* A simple module loader from a function
This will be the foundation for having a combinatoric module loader
system.
* Add more utility module loader types
* clippies
* Remove convenience functions and allow AsRef<Path> for constructing fs
* clippies
* Move FnModuleLoader to return a result, and add a new simpler loader
* Address comment
2 months ago
Hans Larsen
cdb47510b3
Add an "iter()" method to Js*Array for convenience ( #3986 )
...
* Allow dead code for code that is newly detected as unused
* Fix compile errors with nightly rust
* Add missing SAFETY section
* Increase safety of `FutexWaiters`
* Add an "iter()" method to Js*Array for convenience
It might be optimizable, and in either case it should be but this at
least let people use an easy API and enjoy future improvements.
* Fix clippies
---------
Co-authored-by: Theo Paris <theo@tinted.dev>
Co-authored-by: José Julián Espina <julian.espina@canonical.com>
2 months ago
dependabot[bot]
a166d4cc3e
Bump the rust-dependencies group with 7 updates ( #3991 )
...
Bumps the rust-dependencies group with 7 updates:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.16` | `4.5.17` |
| [regress](https://github.com/ridiculousfish/regress ) | `0.10.0` | `0.10.1` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.127` | `1.0.128` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.209` | `1.0.210` |
| [smol](https://github.com/smol-rs/smol ) | `2.0.1` | `2.0.2` |
| [bytemuck](https://github.com/Lokathor/bytemuck ) | `1.17.1` | `1.18.0` |
| [intrusive-collections](https://github.com/Amanieu/intrusive-rs ) | `0.9.6` | `0.9.7` |
Updates `clap` from 4.5.16 to 4.5.17
- [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/clap_complete-v4.5.16...clap_complete-v4.5.17 )
Updates `regress` from 0.10.0 to 0.10.1
- [Release notes](https://github.com/ridiculousfish/regress/releases )
- [Commits](https://github.com/ridiculousfish/regress/compare/v0.10.0...v0.10.1 )
Updates `serde_json` from 1.0.127 to 1.0.128
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/1.0.127...1.0.128 )
Updates `serde` from 1.0.209 to 1.0.210
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.209...v1.0.210 )
Updates `smol` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/smol-rs/smol/releases )
- [Changelog](https://github.com/smol-rs/smol/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/smol/compare/v2.0.1...v2.0.2 )
Updates `bytemuck` from 1.17.1 to 1.18.0
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.17.1...v1.18.0 )
Updates `intrusive-collections` from 0.9.6 to 0.9.7
- [Commits](https://github.com/Amanieu/intrusive-rs/commits )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: regress
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: smol
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: intrusive-collections
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
Hans Larsen
5534ec2773
Add a display type for JsString to allow formatting without allocations ( #3951 )
...
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
2 months ago
Hans Larsen
4778780073
Add support for Trace, Finalize and JsData for Convert<> ( #3970 )
2 months ago
José Julián Espina
4c5df56b16
Allow warnings when running CI on release branches ( #3990 )
2 months ago
José Julián Espina
b429c54bf1
Enable CI for release branches ( #3987 )
3 months ago
Hans Larsen
b08610afd9
Allow dead code for code that is newly detected as unused ( #3984 )
...
* Allow dead code for code that is newly detected as unused
* Fix compile errors with nightly rust
* Add missing SAFETY section
* Increase safety of `FutexWaiters`
---------
Co-authored-by: Theo Paris <theo@tinted.dev>
Co-authored-by: José Julián Espina <julian.espina@canonical.com>
3 months ago
Hans Larsen
0f282f5bc3
Add support for boa(rename = "") in TryFromJs derive ( #3980 )
...
* Add support for boa(rename = "") in TryFromJs derive
* Fix clippies and fmt
* Move macro test to boa_engine
3 months ago
dependabot[bot]
eecba59617
Bump the rust-dependencies group with 3 updates ( #3974 )
...
Bumps the rust-dependencies group with 3 updates: [indexmap](https://github.com/indexmap-rs/indexmap ), [syn](https://github.com/dtolnay/syn ) and [bytemuck](https://github.com/Lokathor/bytemuck ).
Updates `indexmap` from 2.4.0 to 2.5.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.4.0...2.5.0 )
Updates `syn` from 2.0.76 to 2.0.77
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.76...2.0.77 )
Updates `bytemuck` from 1.17.0 to 1.17.1
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.17.0...v1.17.1 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago
shurizzle
9a553db188
fix: ignore `debugger` statement ( #3976 )
...
Co-authored-by: shurizzle <me@shurizzle.dev>
3 months ago
Hans Larsen
c57f2310bf
Add a clone_inner method to allow cloning of inner data ( #3968 )
...
* Add a clone_inner method to allow cloning of inner data
* oops
* Address comment
3 months ago
dependabot[bot]
83ed291774
Bump the rust-dependencies group with 4 updates ( #3969 )
...
Bumps the rust-dependencies group with 4 updates: [serde_json](https://github.com/serde-rs/json ), [serde](https://github.com/serde-rs/serde ), [quote](https://github.com/dtolnay/quote ) and [syn](https://github.com/dtolnay/syn ).
Updates `serde_json` from 1.0.125 to 1.0.127
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/1.0.125...1.0.127 )
Updates `serde` from 1.0.208 to 1.0.209
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.208...v1.0.209 )
Updates `quote` from 1.0.36 to 1.0.37
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.36...1.0.37 )
Updates `syn` from 2.0.75 to 2.0.76
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.75...2.0.76 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago