raskad
8536a6b88b
Fix remaining TypedArray bugs ( #3186 )
1 year ago
dependabot[bot]
1e10f07c1c
Bump serde from 1.0.179 to 1.0.180 ( #3192 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.179 to 1.0.180.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.180 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
dependabot[bot]
f41ea50859
Bump serde from 1.0.177 to 1.0.179 ( #3191 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.177 to 1.0.179.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.177...v1.0.179 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
Haled Odat
d8bf5f589d
Refactor `Context::run()` method ( #3179 )
...
* Refactor `Context::run()` method
- Remove async generator close from run
- Remove promise capability from run
- Remove promise capability check from call_internal
- Remove generator creation from call_internal
- Move promise capability creation to separate opcode
* Inline ReThrow opcode in run
1 year ago
raskad
4f9175b775
Implement `String.prototype.isWellFormed` and `String.prototype.toWellFormed` ( #3187 )
1 year ago
Haled Odat
2b01ef1c27
Close iterator after generator return call while array destructuring assignment ( #3164 )
...
* Close iterator after generator return while array destructuring
* Add MaybeException opcode and remove handler check
1 year ago
Haled Odat
be055a30e1
Refactor environment, exception handling and jumping in VM ( #3059 )
...
* Refactor environment, exception handling, generators and jumping in VM
* Add helper for JumpIfNotResumeKind opcode
* Better handler display for CodeBlock
* Update documentaion
* Factor exception handling from throw opcodes
* Simplify try compilation
* Only push try statement jump controll info if needed
* Add helper functions checks in async and generator
* Run prettier
* Remove redundant check for end of bytecode.
We always emit a `Return` opcode at the end of a function, so this should never be reached.
* Fix doc link
* Implement stack_count calculation of handlers
* Fix typo
* Rename `LoopContinue` to `IncrementLoopIteration`
* Fix typo
* Remove #[allow(unused)] from Handler field
1 year ago
dependabot[bot]
d459ff1b44
Bump jemallocator from 0.5.0 to 0.5.4 ( #3181 )
...
Bumps [jemallocator](https://github.com/tikv/jemallocator ) from 0.5.0 to 0.5.4.
- [Release notes](https://github.com/tikv/jemallocator/releases )
- [Changelog](https://github.com/tikv/jemallocator/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tikv/jemallocator/compare/0.5.0...0.5.4 )
---
updated-dependencies:
- dependency-name: jemallocator
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>
1 year ago
dependabot[bot]
30ff5ae4f8
Bump serde from 1.0.176 to 1.0.177 ( #3182 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.176 to 1.0.177.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.176...v1.0.177 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
Choongwoo Han
72b7ee5866
Re-enable must_use clippy rule ( #3180 )
1 year ago
dependabot[bot]
93e3b2f629
Bump serde_json from 1.0.103 to 1.0.104 ( #3178 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.103...v1.0.104 )
---
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>
1 year ago
dependabot[bot]
77028cc7bd
Bump serde from 1.0.175 to 1.0.176 ( #3176 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.175 to 1.0.176.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.176 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
raskad
33e8c51fc6
Fix TypedArrayConstructors tests ( #3171 )
1 year ago
Choongwoo Han
6a7862917a
Find roots when running GC rather than runtime ( #3109 )
...
* Find roots when running GC
Attempt to address the issue #2773 .
The existing implementation had an expensive overhead of managing root
counts, especially for mutable borrow of GcRefCell.
Instead of managing the root counts, this change counts the number of
Gc/WeakGc handles located in Gc heap objects and total number of them.
Then, we can find whether there is a root by comparing those numbers.
* Fix clippy errors
* Keep reference counts in Box
* Addressing comment
* Fix clippy errors
* Fix typo
* non_root_count includes mark bit
* give a space
1 year ago
dependabot[bot]
e6b600c1b1
Bump serde from 1.0.174 to 1.0.175 ( #3169 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.174 to 1.0.175.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.174...v1.0.175 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
dependabot[bot]
07e55006d1
Bump num-traits from 0.2.15 to 0.2.16 ( #3166 )
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.15 to 0.2.16.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.15...num-traits-0.2.16 )
---
updated-dependencies:
- dependency-name: num-traits
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>
1 year ago
dependabot[bot]
7121841b67
Bump serde from 1.0.173 to 1.0.174 ( #3162 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.173 to 1.0.174.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.173...v1.0.174 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
dependabot[bot]
88bc5189f2
Bump thiserror from 1.0.43 to 1.0.44 ( #3163 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.43...1.0.44 )
---
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>
1 year ago
dependabot[bot]
0f514f65ce
Bump serde from 1.0.171 to 1.0.173 ( #3156 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.171 to 1.0.173.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.173 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
dependabot[bot]
9243972184
Bump serde_json from 1.0.102 to 1.0.103 ( #3154 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.102...v1.0.103 )
---
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>
1 year ago
Alvin Kuruvilla
de192d36e6
Implement i128/u128 to JsBigInt conversions ( #3129 )
...
* Implement i128/u128 to JsValue Conversions
This commit implements trait conversions to JsValue for i128/u128.
This addresses #1970
* Remove Numeric trait impl for u/i128
* Re-add JsBigInt conversion for u/i128
* Update boa_engine/src/bigint.rs
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
* Add missing newlines
---------
Co-authored-by: Iban Eguia Moraza <razican@protonmail.ch>
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
Co-authored-by: José Julián Espina <jedel0124@gmail.com>
1 year ago
dependabot[bot]
58cfc70c45
Bump indoc from 2.0.2 to 2.0.3 ( #3142 )
...
Bumps [indoc](https://github.com/dtolnay/indoc ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/compare/2.0.2...2.0.3 )
---
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>
1 year ago
Dirk de Visser
b51e7cfb84
Implement `findLast` and `findLastIndex` on TypedArray ( #3135 )
...
* Implement `findLast` and `findLastIndex` on `TypedArray`
* Apply cleanups based on feedback on the find_via_predicate introduction
1 year ago
João Borges
93d05bda68
Fix 1.71.0 lints ( #3140 )
...
* Fix 1.71.0 lints
* Attest suggestion
1 year ago
Dirk de Visser
e1a2bb2055
Refactor `Array.prototype.find*` and TypedArray variants to use `FindViaPredicate` ( #3134 )
...
* Refactor `Array.prototype.{find,findIndex}` and TypedArray variants to use `FindViaPredicate`
* Fix cargo fmt
* Remove duplicate callable check, simplify returns
1 year ago
dependabot[bot]
0cd209a058
Bump serde_json from 1.0.100 to 1.0.102 ( #3137 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.100 to 1.0.102.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.100...v1.0.102 )
---
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>
1 year ago
dependabot[bot]
dc90d0668d
Bump dashmap from 5.4.0 to 5.5.0 ( #3132 )
...
Bumps [dashmap](https://github.com/xacrimon/dashmap ) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/xacrimon/dashmap/releases )
- [Commits](https://github.com/xacrimon/dashmap/compare/v5.4.0...v5.5.0 )
---
updated-dependencies:
- dependency-name: dashmap
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>
1 year ago
dependabot[bot]
0cc4322cc2
Bump serde from 1.0.170 to 1.0.171 ( #3130 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.170 to 1.0.171.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.170...v1.0.171 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
dependabot[bot]
f776b1c06e
Bump serde from 1.0.169 to 1.0.170 ( #3127 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.169 to 1.0.170.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.169...v1.0.170 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
Dirk de Visser
fe9c8d9e90
Add missing 'unscopables' to `Array.prototype[@@unscopables]` ( #3111 )
1 year ago
Dirk de Visser
1a2be79f83
Add regexp indices (`d` flag) support ( #3094 )
...
* Add regexp indices (`d` flag) support
Closes #3086
* Run rustfmt
* Fix clippy
1 year ago
Haled Odat
7ee922bd76
Change `name` field type in `CodeBlock` to `JsString` ( #3107 )
...
* Change name type to `JsString`
* cargo-clippy
1 year ago
Iban Eguia Moraza
49f00590a4
Removed time 0.1 dependency, updated dependencies ( #3122 )
1 year ago
Haled Odat
4baf6e232b
`TypedArray.prototype.values()` and `TypedArray.prototype[@@iterator]` should have the same value ( #3096 )
1 year ago
Haled Odat
40f33d8efb
Move `RefCell` of `CompileTimeEnvironment`s to field `bindings` ( #3108 )
...
* Move `RefCell` of `CompileTimeEnvironment`s to field `bindings`
All field except the `bindings` field are mutated after `CompileTimeEnvironment`
creation. It moves the `RefCell` to `bindings` field, this cleans the methods callsites.
* cargo-clippy
1 year ago
dependabot[bot]
c181af4d70
Bump serde from 1.0.166 to 1.0.168 ( #3121 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.166 to 1.0.168.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.168 )
---
updated-dependencies:
- dependency-name: serde
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>
1 year ago
dependabot[bot]
6d13a0198b
Bump thiserror from 1.0.41 to 1.0.43 ( #3116 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.41 to 1.0.43.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.41...1.0.43 )
---
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>
1 year ago
José Julián Espina
395d0c8d42
Format let-else expressions ( #3102 )
1 year ago
Jason Williams
5eb8541e4a
Changelog17 ( #3101 )
...
* v0.17.0 changelog
* Added latest changes, updated dependencies
---------
Co-authored-by: Iban Eguia Moraza <razican@protonmail.ch>
1 year ago
José Julián Espina
ce520fa2ba
Prepare for release 0.17 ( #3083 )
1 year ago
Dirk de Visser
4a75b299e3
Correctly handle finally..loop..break ( #3073 )
...
The match was too greedy, being executed for 'break' abrupt completions as well.
Closes #3054
1 year ago
José Julián Espina
551a287718
Copy `ABOUT.md` file to all published crates ( #3074 )
1 year ago
dependabot[bot]
d0fa8cbec4
Bump serde_json from 1.0.97 to 1.0.99 ( #3065 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.97 to 1.0.99.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.97...v1.0.99 )
---
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>
1 year ago
Haled Odat
9b25ecf491
Simplify/Refactor exception handling and last statement value ( #3053 )
1 year ago
Dirk de Visser
4f89303f43
Skip reversing arguments in SuperCallDerived ( #3062 )
...
`code_block::construct_internal` already reverses the arguments into `argument_n ... argument_1` on to the stack, since normal constructor parameters are resolved in order.
1 year ago
dependabot[bot]
1f94e79a4e
Bump itertools from 0.10.5 to 0.11.0 ( #3061 )
...
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.10.5 to 0.11.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.5...v0.11.0 )
---
updated-dependencies:
- dependency-name: itertools
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>
1 year ago
Haled Odat
610cf2c3c8
Use `Rc` instead of `Gc` for `CompileTimeEnvironment`s ( #3025 )
...
* Use `Rc` instead of `Gc` for `CompileTimeEnvironment`s
* Add comment
1 year ago
raskad
86726f1238
Fix super property access ( #3026 )
...
* Fix super property access
* Add better documentation to compiler
1 year ago
José Julián Espina
1a21cc904f
Allow awaiting `JsPromise` from Rust code ( #3011 )
...
* Allow awaiting `JsPromise` from Rust code
* Fix docs
* Relink to docs.rs
1 year ago
Christopher Serr
dfba57e39a
Make `IntegerIndexed::byte_offset` public ( #3017 )
...
This allows querying the full range of the `TypedArray` in the
underlying `ArrayBuffer`.
1 year ago