dependabot[bot]
9665f8be3b
Bump serde from 1.0.181 to 1.0.183 ( #3202 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.181 to 1.0.183.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.181...v1.0.183 )
---
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]
9347ed1983
Bump serde from 1.0.180 to 1.0.181 ( #3200 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.180 to 1.0.181.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.181 )
---
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]
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
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
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
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]
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]
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]
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
Iban Eguia Moraza
49f00590a4
Removed time 0.1 dependency, updated dependencies ( #3122 )
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
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
José Julián Espina
551a287718
Copy `ABOUT.md` file to all published crates ( #3074 )
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
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
940529ac8a
Fix panic in optional expressions with private identifiers ( #2995 )
1 year ago
José Julián Espina
2fa9c65e97
Correctly initialize functions inside modules ( #2993 )
1 year ago
José Julián Espina
7ae858204b
Implement pseudo-property `import.meta` ( #2956 )
...
* Implement pseudo-property `import.meta`
* Apply review
1 year ago
José Julián Espina
9bbe0184a4
Fix remaining static module bugs ( #2955 )
...
* Fix remaining module bugs
* npx prettier
* Fix regression
1 year ago
José Julián Espina
09658b02bc
Implement dynamic imports ( #2932 )
...
* WIP: 76d7eceed6 Implement dynamic imports
* Expand `ActiveRunnable` to missing places
* Fix memory leak
* Fix docs
* Parse `import` as call expression
* Fix regressions
* Fix copypasted doc
* clippy fix
* Adjust ignored features
* Migrate away from `top_level_*` operations
* Fix more module tests
* Fix doc link
1 year ago
raskad
5e9193aced
Implement Private Runtime Environments ( #2929 )
1 year ago
dependabot[bot]
a0b769d5b1
Bump bitflags from 2.2.1 to 2.3.1 ( #2945 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.2.1 to 2.3.1.
- [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.2.1...2.3.1 )
---
updated-dependencies:
- dependency-name: bitflags
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
06161edcbd
Implement module execution ( #2922 )
...
* Implement draft of module execution
* Fix recursion bug
* Re-enable JsObject's debug printing
* Modify API and document some methods
* Add missing documentation
* Add newline to module scripts
* npx prettier
* Apply reviews
* Add reference to parent struct on source module
* Document more steps on the example
* cargo clippy
* Revert `BoaGc` changes
* Lower `GcRefCell` to `Inner` of `SourceTextModule`
* Replace weak ref to module with strong ref
* Apply review
* Clarify reasoning of manual `Trace` impl
* Apply review pt. 2
* Revert gc changes
1 year ago
José Julián Espina
ab87b2fd5b
Extract "About Boa" section into a separate file ( #2938 )
...
* Extract "About Boa" section into a separate file
* Add newline
* cargo fmt
1 year ago
raskad
efeaa40ae2
Fix tagged template creation ( #2925 )
...
* Fix tagged template creation
* Fix template identifier hash
* Apply suggestion
* Apply suggestion
1 year ago
dependabot[bot]
ba7d2163cc
Bump serde from 1.0.162 to 1.0.163 ( #2927 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.162 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163 )
---
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
f57872cf8c
Fix lexical environments in for loops ( #2917 )
...
* Fix lexical environments in for loops
* Fix typo
2 years ago
raskad
7605453cd7
Add loop and switch return values ( #2828 )
...
* Add loop and switch return values
* Apply suggestions
2 years ago
raskad
70b0d49483
Implement annexB Block-Level Function Declarations ( #2910 )
...
* Implement annexB Block-Level Function Declarations
* Apply suggestions
2 years ago
Haled Odat
908015f9fd
Fix switch `default` execution ( #2907 )
...
* Fix switch `default` execution
* Fix typo
* Update switch.rs
2 years ago
raskad
e3d2056f5b
Refactor binding declarations ( #2887 )
2 years ago
dependabot[bot]
f4ebb2bd2d
Bump serde from 1.0.160 to 1.0.162 ( #2900 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.160 to 1.0.162.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...1.0.162 )
---
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>
2 years ago
Iban Eguia Moraza
1965492f7c
Added unit tests for `boa_ast::Punctuator` ( #2884 )
...
* Added unit tests for `boa_ast::Punctuator`
* Removed ut_ prefix from tests
2 years ago
Iban Eguia Moraza
08a72387ba
Added unit tests for `boa_ast::Keyword` ( #2883 )
...
* Added unit tests for `boa_ast::Keyword`
* Removed the ut_ prefix on test functions
2 years ago
dependabot[bot]
cebec9da90
Bump bitflags from 2.1.0 to 2.2.1 ( #2868 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.1.0 to 2.2.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/bitflags/bitflags/releases ">bitflags's releases</a>.</em></p>
<blockquote>
<h2>2.2.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Refactor attribute filtering to apply per-flag by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/345 ">bitflags/bitflags#345</a></li>
<li>Prepare for 2.2.1 release by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/346 ">bitflags/bitflags#346</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1 ">https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1 </a></p>
<h2>2.2.0 (yanked)</h2>
<h2>What's Changed</h2>
<ul>
<li>Create SECURITY.md by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338 ">bitflags/bitflags#338</a></li>
<li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
<li>Add support for bytemuck by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336 ">bitflags/bitflags#336</a></li>
<li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341 ">bitflags/bitflags#341</a></li>
<li>Prepare for 2.2.0 release by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/342 ">bitflags/bitflags#342</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 ">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 </a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md ">bitflags's changelog</a>.</em></p>
<blockquote>
<h1>2.2.1</h1>
<h2>What's Changed</h2>
<ul>
<li>Refactor attribute filtering to apply per-flag by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/345 ">bitflags/bitflags#345</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1 ">https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1 </a></p>
<h1>2.2.0</h1>
<h2>What's Changed</h2>
<ul>
<li>Create SECURITY.md by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338 ">bitflags/bitflags#338</a></li>
<li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
<li>Add support for bytemuck by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336 ">bitflags/bitflags#336</a></li>
<li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341 ">bitflags/bitflags#341</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 ">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0c318c0d77
"><code>0c318c0</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/346 ">#346</a> from KodrAus/cargo/2.2.1</li>
<li><a href="a51c053286
"><code>a51c053</code></a> prepare for 2.2.1 release</li>
<li><a href="638707f0f0
"><code>638707f</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/345 ">#345</a> from KodrAus/fix/recursion</li>
<li><a href="f3f3b6a7b0
"><code>f3f3b6a</code></a> add docs to example generated flags</li>
<li><a href="588d13298e
"><code>588d132</code></a> refactor attribute filtering to apply per-flag</li>
<li><a href="cbcafa710f
"><code>cbcafa7</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/342 ">#342</a> from KodrAus/cargo/2.2.0</li>
<li><a href="61df53a791
"><code>61df53a</code></a> prepare for 2.2.0 release</li>
<li><a href="780f456840
"><code>780f456</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/341 ">#341</a> from KodrAus/fix/doc-alias</li>
<li><a href="405e7de8ee
"><code>405e7de</code></a> updates macro field names</li>
<li><a href="561fe509b0
"><code>561fe50</code></a> add a top-level macro for filtering attributes</li>
<li>Additional commits viewable in <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.1 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=bitflags&package-manager=cargo&previous-version=2.1.0&new-version=2.2.1 )](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
2 years ago
Iban Eguia Moraza
63d9d67ecb
Added a Boa runtime ( #2743 )
...
This Pull Request fixes/closes #718 .
It changes the following:
- Adds a new `boa_runtime` crate, that will only include `console` for now
- Changes the `boa_cli` crate to use the new `boa_runtime` crate for the console, instead of the `console` feature of `boa_engine`
- Removes the `console` feature in `boa_engine`
- Adds a new `boa_testing` helper crate with some useful functions for testing `boa`. This part duplicates the code from `boa_engine`, but I could not make `boa_engine` work with this crate as a dependency due to circular dependencies. Maybe doing it a bit generic could work, but didn't have enough time to check it.
To be checked: wether the WASM example works as expected with the console.
2 years ago
José Julián Espina
53e4825a19
Implement var initializers in for-in loops ( #2842 )
...
This Pull Request implements [Initializers in ForIn Statement Heads](https://tc39.es/ecma262/#sec-initializers-in-forin-statement-heads ) from the Annex B. This also cleans up the "annex-b" feature to be able to disable it with `--no-default-features`, since I couldn't test the error messages when the feature is disabled.
2 years ago
raskad
54695cc620
Fix async generators ( #2853 )
...
This Pull Request fixes #2711 and fixes #2671 .
It changes the following:
- Fix the logic in async generator `yield` and `yield*` expressions.
2 years ago
dependabot[bot]
c87cf7c7f4
Bump bitflags from 2.1.0 to 2.2.0 ( #2845 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.1.0 to 2.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/bitflags/bitflags/releases ">bitflags's releases</a>.</em></p>
<blockquote>
<h2>2.2.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Create SECURITY.md by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338 ">bitflags/bitflags#338</a></li>
<li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
<li>Add support for bytemuck by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336 ">bitflags/bitflags#336</a></li>
<li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341 ">bitflags/bitflags#341</a></li>
<li>Prepare for 2.2.0 release by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/342 ">bitflags/bitflags#342</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 ">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 </a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md ">bitflags's changelog</a>.</em></p>
<blockquote>
<h1>2.2.0</h1>
<h2>What's Changed</h2>
<ul>
<li>Create SECURITY.md by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338 ">bitflags/bitflags#338</a></li>
<li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
<li>Add support for bytemuck by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336 ">bitflags/bitflags#336</a></li>
<li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341 ">bitflags/bitflags#341</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/nicholasbishop "><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340 ">bitflags/bitflags#340</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 ">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="cbcafa710f
"><code>cbcafa7</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/342 ">#342</a> from KodrAus/cargo/2.2.0</li>
<li><a href="61df53a791
"><code>61df53a</code></a> prepare for 2.2.0 release</li>
<li><a href="780f456840
"><code>780f456</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/341 ">#341</a> from KodrAus/fix/doc-alias</li>
<li><a href="405e7de8ee
"><code>405e7de</code></a> updates macro field names</li>
<li><a href="561fe509b0
"><code>561fe50</code></a> add a top-level macro for filtering attributes</li>
<li><a href="dc971042c8
"><code>dc97104</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/336 ">#336</a> from KodrAus/feat/bytemuck</li>
<li><a href="483b1bb396
"><code>483b1bb</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/340 ">#340</a> from nicholasbishop/bishop-multi-bit-doc</li>
<li><a href="7a6cea9cfd
"><code>7a6cea9</code></a> add docs to describe the behavior of multi-bit flags</li>
<li><a href="e40b8f18bd
"><code>e40b8f1</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/338 ">#338</a> from bitflags/feat/security-policy</li>
<li><a href="28c6f62cf0
"><code>28c6f62</code></a> Create SECURITY.md</li>
<li>Additional commits viewable in <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=bitflags&package-manager=cargo&previous-version=2.1.0&new-version=2.2.0 )](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
2 years ago
dependabot[bot]
2f580bbac3
Bump serde from 1.0.159 to 1.0.160 ( #2807 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.159 to 1.0.160.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases ">serde's releases</a>.</em></p>
<blockquote>
<h2>v1.0.160</h2>
<ul>
<li>Make derived serializer/deserializer internals <code>doc(hidden)</code> (<a href="https://redirect.github.com/serde-rs/serde/issues/2426 ">#2426</a>, thanks <a href="https://github.com/compiler-errors "><code>@compiler-errors</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0c6a2bbf79
"><code>0c6a2bb</code></a> Release 1.0.160</li>
<li><a href="a80d830f27
"><code>a80d830</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2426 ">#2426</a> from compiler-errors/dont-doc-private</li>
<li><a href="5f3fd9994e
"><code>5f3fd99</code></a> Make serializer/deserializer internals doc(hidden)</li>
<li>See full diff in <a href="https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde&package-manager=cargo&previous-version=1.0.159&new-version=1.0.160 )](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
2 years ago
dependabot[bot]
303d8d4b69
Bump bitflags from 2.0.2 to 2.1.0 ( #2788 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.0.2 to 2.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/bitflags/bitflags/releases ">bitflags's releases</a>.</em></p>
<blockquote>
<h2>2.1.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add docs for the internal Field0 and examples of formatting/parsing by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/328 ">bitflags/bitflags#328</a></li>
<li>Add support for arbitrary by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/324 ">bitflags/bitflags#324</a></li>
<li>Fix up missing docs for consts within consts by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/330 ">bitflags/bitflags#330</a></li>
<li>Ignore clippy lint in generated code by <a href="https://github.com/Jake-Shadle "><code>@Jake-Shadle</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/331 ">bitflags/bitflags#331</a></li>
<li>Prepare for 2.1.0 release by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/334 ">bitflags/bitflags#334</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Jake-Shadle "><code>@Jake-Shadle</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/331 ">bitflags/bitflags#331</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0 ">https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0 </a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md ">bitflags's changelog</a>.</em></p>
<blockquote>
<h1>2.1.0</h1>
<h2>What's Changed</h2>
<ul>
<li>Add docs for the internal Field0 and examples of formatting/parsing by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/328 ">bitflags/bitflags#328</a></li>
<li>Add support for arbitrary by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/324 ">bitflags/bitflags#324</a></li>
<li>Fix up missing docs for consts within consts by <a href="https://github.com/KodrAus "><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/330 ">bitflags/bitflags#330</a></li>
<li>Ignore clippy lint in generated code by <a href="https://github.com/Jake-Shadle "><code>@Jake-Shadle</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/331 ">bitflags/bitflags#331</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Jake-Shadle "><code>@Jake-Shadle</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/331 ">bitflags/bitflags#331</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0 ">https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="597d407492
"><code>597d407</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/334 ">#334</a> from KodrAus/cargo/2.1.0</li>
<li><a href="c272a0fd0a
"><code>c272a0f</code></a> prepare for 2.1.0 release</li>
<li><a href="db4ce3649f
"><code>db4ce36</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/331 ">#331</a> from EmbarkStudios/main</li>
<li><a href="8ce007292c
"><code>8ce0072</code></a> Ignore clippy lint</li>
<li><a href="038f6e841c
"><code>038f6e8</code></a> Add missing Formatter lifetimes</li>
<li><a href="98b85d5c45
"><code>98b85d5</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/330 ">#330</a> from KodrAus/fix/missing-docs</li>
<li><a href="7eb912a5aa
"><code>7eb912a</code></a> fix up missing docs for consts within consts</li>
<li><a href="83359a6913
"><code>83359a6</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/324 ">#324</a> from KodrAus/feat/arbitrary</li>
<li><a href="ddc975b976
"><code>ddc975b</code></a> Merge pull request <a href="https://redirect.github.com/bitflags/bitflags/issues/328 ">#328</a> from KodrAus/chore/docs</li>
<li><a href="a963083e5e
"><code>a963083</code></a> update wording of parsing/formatting example</li>
<li>Additional commits viewable in <a href="https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=bitflags&package-manager=cargo&previous-version=2.0.2&new-version=2.1.0 )](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
2 years ago
raskad
e286d9fbb7
Add AST node for parenthesized expressions ( #2738 )
...
Currently we have no explicit representation for parenthesized expressions which makes some behaviours impossible to detect. A bonus is that we can now turn AST that contains parenthesized expressions back to code.
This Pull Request changes the following:
- Add an AST node for parenthesized expressions.
- Adjust some conversions and checks to "ignore"/"expand" parenthesized expressions.
- Fix some tests that had parenthesized expressions.
2 years ago
Haled Odat
6c438b5516
Implement constant folding optimization ( #2679 )
...
This PR implements an optimizer, It currently implements the [constant folding optimization][cfo]. this optimization is responsible for "folding"/evaluating constant expressions.
For example:
```js
let x = ((1 + 2 + -4) * 8) << 4
```
Generates the following instruction(s) (`cargo run -- -t`):
```
000000 0000 PushOne
000001 0001 PushInt8 2
000003 0002 Add
000004 0003 PushInt8 4
000006 0004 Neg
000007 0005 Add
000008 0006 PushInt8 8
000010 0007 Mul
000011 0008 PushInt8 4
000013 0009 ShiftLeft
000014 0010 DefInitLet 0000: 'x'
```
With constant folding it generates the following instruction(s) (`cargo run -- -t -O`):
```
000000 0000 PushInt8 -128
000002 0001 DefInitLet 0000: 'x'
```
It changes the following:
- Implement ~~WIP~~ constant folding optimization, ~~only works with integers for now~~
- Add `--optimize, -O` flag to boa_cli
- Add `--optimizer-statistics` flag to boa_cli for optimizer statistics
- Add `--optimize, -O` flag to boa_tester
After I finish with this, will try to implement other optimizations :)
[cfo]: https://en.wikipedia.org/wiki/Constant_folding
2 years ago
dependabot[bot]
d134a0acee
Bump serde from 1.0.158 to 1.0.159 ( #2755 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.158 to 1.0.159.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases ">serde's releases</a>.</em></p>
<blockquote>
<h2>v1.0.159</h2>
<ul>
<li>Accept empty #[serde()] attribute (<a href="https://redirect.github.com/serde-rs/serde/issues/2422 ">#2422</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d6de911855
"><code>d6de911</code></a> Release 1.0.159</li>
<li><a href="04af32230e
"><code>04af322</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2422 ">#2422</a> from dtolnay/emptyattr</li>
<li><a href="4cb8d079f8
"><code>4cb8d07</code></a> Accept empty #[serde()] attribute</li>
<li><a href="6ab55a1e52
"><code>6ab55a1</code></a> Add regression test for issue 2415</li>
<li><a href="acfd19cb46
"><code>acfd19c</code></a> Release serde_derive_internals 0.27.0</li>
<li>See full diff in <a href="https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde&package-manager=cargo&previous-version=1.0.158&new-version=1.0.159 )](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
2 years ago
Iban Eguia Moraza
6ea4848bb5
Fix documentation links ( #2741 )
...
This PR changes the following:
- Adds a new (very simple) security policy, to comply with GitHub standards
- Changes the internal links of the documentation to point to the new boajs.dev domain
- The developer documentation link now lies in the CONTRIBUTING.md file
2 years ago
raskad
431a358b2f
Implement `with` and object environments ( #2692 )
...
This Pull Request changes the following:
- Implement `with` statement parsing, ast node, compilation and excution.
- Implement object environments that are used in the `with` statement excution.
The implementation of object environments can probably be optimized further by using more compile-time information about when object environments can exist. Maybe there could also be a separate environment stack for object environments to reduce the filtering and iteration that is needed with the current implementation.
This does not fix all tests in the `test/language/statements/with` suite yet. But for most failing tests that I have looked at we are missing other features / have bugs elsewhere.
As a note for the review:
The functions in the `impl Context` block in `boa_engine/src/environments/runtime.rs` are mostly copied / moved from the existing functions. The only change there should be the addition of the object environment logic. They had to be moved to `Context` because of borrow semantics.
2 years ago