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
dependabot[bot]
78a0c2f74b
Bump serde_json from 1.0.96 to 1.0.97 ( #3046 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.96 to 1.0.97.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.96...v1.0.97 )
---
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
José Julián Espina
0e1b32a232
Allow `JobQueue` to concurrently run jobs ( #3036 )
...
* Allow `JobQueue` to concurrently run jobs
* Remove bounds on `run_jobs_async`
1 year ago
dependabot[bot]
5da8846020
Bump bitflags from 2.3.1 to 2.3.2 ( #3039 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.3.1...2.3.2 )
---
updated-dependencies:
- dependency-name: bitflags
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
827c055ca6
Fix class constructor return value ( #3028 )
1 year ago
raskad
ef4d9f6f00
Optimize `Swap` opcode ( #3027 )
1 year ago
Haled Odat
423f099a41
Remove `mutate_immutable` and `silent` checks from Opcodes ( #3024 )
...
* Generate specialized opcode for binding errors
* Remove `mutate_immutable` and `silent` checks from Opcodes
* rust-fmt
1 year ago
Haled Odat
da4a3315d7
Remove `[[ClassFieldInitializerName]]` from `CodeBlock` ( #3022 )
1 year ago
Haled Odat
0c790ac623
Merge `private_names` into `names` constant pool ( #3023 )
...
* Merge `private_names` into `names` constant pool
* Fix clippy lint
1 year ago
José Julián Espina
73a718c8a4
Add convenience methods to `ModuleLoader` ( #3007 )
...
* Add convenience methods to `ModuleLoader`
* Document special behaviour of `SimpleModuleLoader`
1 year ago
raskad
caaf1d258c
Fix panics on empty return values ( #3018 )
1 year ago
dependabot[bot]
e4b7e63830
Bump serde from 1.0.163 to 1.0.164 ( #3016 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164 )
---
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
493176b4f8
Return the correct value during a labelled break ( #2996 )
1 year ago
José Julián Espina
a989462e25
Unify async iterators and iterators compilation ( #2976 )
...
* Close active iterators when returning from async generator
* Fix remaining async generator tests
* Fix remaining async generator tests
* Replace some reserved opcodes
* Fix for await of loop flag
* Add tests for fix
* Remove whitespace
* Fix test display and improve test
* Change `usize` to `u32`
1 year ago
raskad
c9a7bdcab8
Fix panic in constructor call ( #3001 )
1 year ago
Shane Murphy
eeeaaeebcc
Fix prompt on windows ( #2986 )
...
* Fix typo
* Refactor prompt highlighting into RLHelper
By moving the prompt coloring to be done in
Highlighter::highlight_prompt, we sidestep the issue on Windows where
the prompt width is calculated post-coloring AND without ignoring escape
codes.
By including it in the implementation of Highlighter, Editor::readline
now operates on a plain-text prompt, so width calculation is correct.
This commit also re-arranges the trait impl order to match the
definition.
1 year ago
dependabot[bot]
f18b3be672
Bump once_cell from 1.17.2 to 1.18.0 ( #2999 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.2 to 1.18.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.2...v1.18.0 )
---
updated-dependencies:
- dependency-name: once_cell
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
José Julián Espina
ee97198d01
Allow `true`, `false` and `null` in object patterns ( #2994 )
...
* Allow `true`, `false` and `null` in object patterns
* Add test
2 years ago
Jason Williams
de241c2b60
show object kind, name and address when using dbg! ( #2960 )
...
* show object kind, name and address when using dbg!
* Update boa_engine/src/object/jsobject.rs
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
* Update boa_engine/src/object/jsobject.rs
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
* Run `rust-fmt`
---------
Co-authored-by: Haled Odat <8566042+HalidOdat@users.noreply.github.com>
2 years ago
José Julián Espina
2fa9c65e97
Correctly initialize functions inside modules ( #2993 )
2 years ago
José Julián Espina
65bf54d7e0
Fix WASM playground ( #2992 )
2 years ago