mirror of https://github.com/boa-dev/boa.git
Tree:
c0a961f650
add-vhs-ci
benchmarks
control-flow-graph
expect-lints
fast-float2
feature/node_span
feature/snapshot
features
gh-readonly-queue/main/pr-2877-b0ddf5eed00a53281d67fc7d846233fc0d99ce9c
gh-readonly-queue/main/pr-3144-8e48cec73fae708420b9af88813d4870243c491a
main
nan-boxing
optimization/static-shapes
real_conformance
reduce-environment-allocations
refactor/interner
refactor/register-vm
releases/0.17
releases/0.19
semver_checks
tco
utility-crate
wasm-debugger
nightly
v0.10
v0.11
v0.12
v0.13
v0.14
v0.15
v0.16
v0.17
v0.17.1
v0.17.2
v0.17.3
v0.18
v0.19
v0.19.1
v0.2.0
v0.2.1
v0.3.0
v0.4.0
v0.5.0
v0.5.1
v0.6.0
v0.7.0
v0.8.0
v0.9.0
${ noResults }
3003 Commits (c0a961f6502668413625cd1169c86d4c4106cb4b)
Author | SHA1 | Message | Date |
---|---|---|---|
José Julián Espina | a12f10e335 |
Implement `String.prototype.toLocaleUpper/LowerCase` (#2822)
This fixes some more ES5 tests that were failing because the functions haven't been implemented. It changes the following: - Adds `String::to_locale_case`, which uses ICU4X to convert strings to uppercase or lowercase. - Refactors `String::to_uppercase` and `String::to_lowercase` into a single `String::to_case` which uses a const generic to distinguish each case. - Adds utility functions on `JsString` to avoid code repetition. |
2 years ago |
dependabot[bot] | 4a5d59da9a |
Bump webpack from 5.78.0 to 5.79.0 (#2814)
Bumps [webpack](https://github.com/webpack/webpack) from 5.78.0 to 5.79.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/webpack/webpack/releases">webpack's releases</a>.</em></p> <blockquote> <h2>v5.79.0</h2> <h2>New Features</h2> <ul> <li>webpack will now support simple destructuring scenarios for treeshaking namespaced imports and <code>DefinePlugin</code> by <a href="https://github.com/vankop"><code>@vankop</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16941">webpack/webpack#16941</a></li> </ul> <h2>Bugfixes</h2> <ul> <li>Truncate extremely long module names in <code>DefaultStatsPrinter</code> by <a href="https://github.com/snitin315"><code>@snitin315</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16882">webpack/webpack#16882</a></li> <li>Add <code>[contenthash]</code> template support in <code>DllPlugin</code>'s <code>name</code> option by <a href="https://github.com/snitin315"><code>@snitin315</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16935">webpack/webpack#16935</a></li> <li>Fixed a bug where <code>readRecords</code> compiler hook was causing hangs in conjunction with the <code>ReadRecordsPlugin</code> by <a href="https://github.com/snitin315"><code>@snitin315</code></a> & <a href="https://github.com/zookatron"><code>@zookatron</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16944">webpack/webpack#16944</a></li> <li>webpack can now consume ESM bundles generated by webpack's esm output support by <a href="https://github.com/vankop"><code>@vankop</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/15608">webpack/webpack#15608</a></li> <li>[CSS] - webpack now respects CSS's case-insensitivity with atTags like <code>@MEDIA</code> by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16915">webpack/webpack#16915</a></li> <li>[CSS] - Fixes a bug where crossOriginLoading anonymous would not work when loading styles by <a href="https://github.com/chenjiahan"><code>@chenjiahan</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16925">webpack/webpack#16925</a></li> </ul> <h2>Developer Experience</h2> <ul> <li>Fix broken links and typos found in examples by <a href="https://github.com/snitin315"><code>@snitin315</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16937">webpack/webpack#16937</a></li> <li>Export more <code>Externals</code> Option types by <a href="https://github.com/snitin315"><code>@snitin315</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/12774">webpack/webpack#12774</a></li> </ul> <h2>Contributor Experience</h2> <ul> <li>Add new test case for ModuleFederationPlugin usage with <code>shareScope</code> option by <a href="https://github.com/snitin315"><code>@snitin315</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16943">webpack/webpack#16943</a></li> <li>Bump core-js from 3.20.3 to 3.30.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16905">webpack/webpack#16905</a></li> <li>Update all applicable local dependencies and devDependencies by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16919">webpack/webpack#16919</a>, <a href="https://redirect.github.com/webpack/webpack/pull/16924">webpack/webpack#16924</a>, <a href="https://redirect.github.com/webpack/webpack/pull/16936">webpack/webpack#16936</a>, <a href="https://redirect.github.com/webpack/webpack/pull/16968">webpack/webpack#16968</a></li> <li>Update to Jest 29 by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16947">webpack/webpack#16947</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/chenjiahan"><code>@chenjiahan</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16925">webpack/webpack#16925</a></li> <li><a href="https://github.com/karlhorky"><code>@karlhorky</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16419">webpack/webpack#16419</a></li> <li><a href="https://github.com/zookatron"><code>@zookatron</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16301">webpack/webpack#16301</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/webpack/webpack/compare/v5.78.0...v5.79.0">https://github.com/webpack/webpack/compare/v5.78.0...v5.79.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
José Julián Espina | 6d3550d0cb |
Implement async functions using generators (#2821)
This should hopefully fix more async/futures issues related to resuming execution in the future, since we can leverage generator logic to handle this for us. It changes the following: - Refactors `GeneratorContext` to handle context preparation. - Reuses the functionality of `GeneratorContext` in `Await`. - Removes `EarlyReturnType` in favour of a single `r#await` bool flag in `CallFrame`. |
2 years ago |
dependabot[bot] | 236012d853 |
Bump serde_json from 1.0.95 to 1.0.96 (#2815)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.95 to 1.0.96. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/json/releases">serde_json's releases</a>.</em></p> <blockquote> <h2>v1.0.96</h2> <ul> <li>Guarantee that <code>to_writer</code> only writes valid UTF-8 strings (<a href="https://redirect.github.com/serde-rs/json/issues/1011">#1011</a>, thanks <a href="https://github.com/stepancheg"><code>@stepancheg</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 841481803a |
Bump syn from 2.0.14 to 2.0.15 (#2820)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.14 to 2.0.15. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.15</h2> <ul> <li>Ensure <code>Type::Tuple</code> of length 1 prints as a tuple even if trailing comma is not provided in the Punctuated (<a href="https://redirect.github.com/dtolnay/syn/issues/1444">#1444</a>, thanks <a href="https://github.com/Fancyflame"><code>@Fancyflame</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 78bc105add |
Bump writeable from 0.5.1 to 0.5.2 (#2819)
Bumps [writeable](https://github.com/unicode-org/icu4x) from 0.5.1 to 0.5.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md">writeable's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>icu4x 1.2 (Apr 13, 2023)</h2> <ul> <li>General <ul> <li>All updated crates: <ul> <li>Add missing <code>Debug</code> impls (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3206">#3206</a>)</li> <li>Update Rust edition to 2021 (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3075">#3075</a>)</li> <li>Internal clippy fixes</li> <li>Unless otherwise specified, all crate updates are to version 1.2.</li> <li>Out-of-cycle releases do not get their own changelog entries, so some entries may span multiple patch or pre-1.0 minor versions.</li> </ul> </li> </ul> </li> <li>Data model and providers <ul> <li><code>icu_provider</code>: <ul> <li>Add support for silencing expected <code>DataError</code>s (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3262">#3262</a>)</li> <li>Removing <code>dhat</code> dependency (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3138">#3138</a>)</li> <li>Make trait <code>DataMarker: 'static</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3137">#3137</a>)</li> </ul> </li> <li><code>icu_datagen</code>: (includes patch updates 1.1.1 and 1.1.2) <ul> <li>(lib) Add <code>Out::Baked</code> and <code>BakedOptions</code>; deprecate <code>Out::Module</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3130">#3130</a>)</li> <li>(cli) Bump clap to 4.0, move to using derive (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3149">#3149</a>)</li> <li>Pare down datagen deps (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3160">#3160</a>)</li> <li>Support changes from CLDR 43 (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3182">#3182</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3201">#3201</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3204">#3204</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3205">#3205</a>)</li> <li>Add support for complemented range iterators (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3198">#3198</a>)</li> <li>Using byte string literals in databake (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3040">#3040</a>)\</li> <li>Datagen support for all new component features</li> <li>(performance) Less <code>ZeroMap</code> mutation in datagen (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3098">#3098</a>)</li> </ul> </li> <li><code>icu_provider_adapters</code>: No other changes</li> <li><code>icu_provider_blob</code>: No other changes</li> <li><code>icu_provider_fs</code>: <ul> <li>Remove sha2 dep (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3160">#3160</a>)</li> </ul> </li> <li><code>icu_provider_macros</code>: No other changes</li> </ul> </li> <li>Components: <ul> <li>Cross component: No additional cross-component changes</li> <li><code>icu_calendar</code> <ul> <li>Document the bounds of <code>IsoSecond</code>, <code>Minute</code> and <code>Hour</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3156">#3156</a>)</li> </ul> </li> <li><code>icu_collator</code>: No other changes</li> <li><code>icu_collections</code>: <ul> <li>Add <code>to_u32</code> for TrieValue (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3222">#3222</a>)</li> <li>Add <code>CPT::try_alloc_map_value</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3207">#3207</a>)</li> <li>Add support for coalescing range iterators (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3198">#3198</a>)</li> <li>Allow inversion lists to be built from ranges that include <code>char::MAX</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3203">#3203</a>)</li> </ul> </li> <li><code>icu_datetime</code>: No other changes</li> <li><code>icu_decimal</code> <ul> <li>Add <code>From<GroupingStrategy></code> for <code>FixedDecimalFormatterOptions</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3045">#3045</a>)</li> </ul> </li> <li><code>icu_list</code> <ul> <li><code>ListJoinerPattern::from_parts_unchecked()</code> is now <code>from_parts()</code> and panics when necessary (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3052">#3052</a>)</li> </ul> </li> <li><code>icu_locid</code> <ul> <li>Reduce size of internal <code>ShortVec</code> abstraction (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3200">#3200</a>)</li> <li>Use <code>Box</code> in place of <code>Vec</code> in <code>ShortVec</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3220">#3220</a>)</li> </ul> </li> <li><code>icu_locid_transform</code> <ul> <li>The default set of likely subtags is now only the subset of languages that have a basic or greater CLDR coverage level; the full set is much larger in CLDR 43 and can be accessed via new constructors (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3148">#3148</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3158">#3158</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3197">#3197</a>)</li> </ul> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/unicode-org/icu4x/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=writeable&package-manager=cargo&previous-version=0.5.1&new-version=0.5.2)](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 |
José Julián Espina | 460051261a |
Implement HTML comments and gate behind the `annex-b` feature (#2817)
Small steps towards ES5 conformance. This PR changes the following: - Implements HTML comments parsing (`<!--`, `-->`). - Gates the functionality behind a new `annex-b` feature for `boa_parser`. - Renames `strict_mode` to `strict` to be consistent with `Parser::set_strict`. |
2 years ago |
dependabot[bot] | b6f929508d |
Bump clap from 4.2.1 to 4.2.2 (#2818)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.1 to 4.2.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.2.2</h2> <h2>[4.2.2] - 2023-04-13</h2> <h3>Internal</h3> <ul> <li>Update dependencies</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.2.2] - 2023-04-13</h2> <h3>Internal</h3> <ul> <li>Update dependencies</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
Haled Odat | bfa9815fe7 |
Fix `TypedArray`s minus zero key (#2808)
It changes the following: - Fix `-0` index in typed arrays |
2 years ago |
dependabot[bot] | e012d2223a |
Bump h2 from 0.3.16 to 0.3.17 (#2816)
Bumps [h2](https://github.com/hyperium/h2) from 0.3.16 to 0.3.17. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hyperium/h2/releases">h2's releases</a>.</em></p> <blockquote> <h2>v0.3.17</h2> <h2>What's Changed</h2> <ul> <li>Add <code>Error::is_library()</code> method to check if the originated inside <code>h2</code>.</li> <li>Add <code>max_pending_accept_reset_streams(usize)</code> option to client and server builders.</li> <li>Fix theoretical memory growth when receiving too many HEADERS and then RST_STREAM frames faster than an application can accept them off the queue. (CVE-2023-26964)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hyperium/h2/blob/master/CHANGELOG.md">h2's changelog</a>.</em></p> <blockquote> <h1>0.3.17 (April 13, 2023)</h1> <ul> <li>Add <code>Error::is_library()</code> method to check if the originated inside <code>h2</code>.</li> <li>Add <code>max_pending_accept_reset_streams(usize)</code> option to client and server builders.</li> <li>Fix theoretical memory growth when receiving too many HEADERS and then RST_STREAM frames faster than an application can accept them off the queue. (CVE-2023-26964)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
José Julián Espina | 0d6ba53ff2 |
Allow passing owned `HostHooks` and `JobQueues` to `Context` (#2811)
This allows `thread_local` contexts to have owned `HostHooks` and `JobQueues`. It changes the following: - Creates a new `MaybeShared` struct that can hold either a reference or an `Rc`. - Changes the `job_queue` and `host_hooks` parameters of `Context` to use `MaybeShared`. This PR also allows us to make `SimpleJobQueue` the default promise runner, which I think it's pretty cool :) cc @lastmjs |
2 years ago |
dependabot[bot] | 82769820fb |
Bump syn from 2.0.13 to 2.0.14 (#2812)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.13 to 2.0.14. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.14</h2> <ul> <li>Add Punctuated::pop_punct() (<a href="https://redirect.github.com/dtolnay/syn/issues/1442">#1442</a>, thanks <a href="https://github.com/programmerjake"><code>@programmerjake</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
José Julián Espina | c9759a8dc3 |
Lift `InternalObjectMethods` from `Object` (#2790)
This Pull Request lifts the `InternalObjectMethods` vtable from `Object`, which should technically improve performance, since we now won't need to call `borrow` to use any of the internal methods, but let's see what the benchmarks show. It changes the following: - Adds a new `VTableObject` struct, containing the old `GcRefCell<Object>` and the lifted `InternalObjectMethods`. - Changes the definition of `JsObject` to `Gc<VTableObject>`. Note that this means the `InternalObjectMethods` are accessible through the `Gc` pointer. - Reestructures intrinsic initialization and initialization APIs to accommodate this change. |
2 years ago |
Iban Eguia Moraza | 6412b30d5d |
Make the `wasmbind` feature of the `chrono` crate optional (#2810)
This Pull Request fixes/closes #2475. It changes the following: - Do not use the `wasmbind` feature by default in the `chrono` crate. This can be enabled selectively if needed. - Updated the `boa_wasm` crate to use this new approach. I'm interested on knowing if this fixes @lastmjs's issue, and on checking with the team if this is the best approach to solve it. |
2 years ago |
Iban Eguia Moraza | a8578f7cef |
Implement `TryFromJs` for `JsObject` wrappers (#2809)
This change allows using built-in `JsObject` wrappers with the `TryFromJs` logic, which makes it easier to derive it in complex objects containing known built-ins, being able to use all the power of the wrappers even inside complex structures. It changes the following: * Implements `TryFromJs` for all `JsObject` wrappers ~, except for `JsProxy` and `Js<Int>Array` wrappers~ -> This has now been added. * Adds checker functions for individual typed array objects. * Adds some missing checker functions from `Object` to `JsObject` ~The reason for not implementing it for `JsProxy` is that we don't have a way (as far as I can tell) to know if a `JsObject` is a `Proxy` object. The reason for the typed arrays (note that `JsTypedArray` implements `TryFromJs`) is that I didn't find an easy way to know which type of typed array a `JsObject` was. Do we have a way of using a `JsObject` to create a Rust `JsUint8Array` or the like?~ |
2 years ago |
raskad | ff0a37f262 |
Fix destructive for-of loop assignments (#2803)
This Pull Request changes the following: - Fix the assignment of variables in destructive for-of initializers. - Fix the environment handling in the compilation of `for-of/in` loops. - Close iterators in destructive for-of loop assignments, when the code throws during the assignment. |
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=" |
2 years ago |
Haled Odat | 4fbecb5084 |
Implement annex-b `trimLeft` and `trimRight` string methods (#2806)
With this and #2805 , `annex-b/builtins/string` should have 100% conformance, also fixed the `normalize` method incorrect `length` value, which was the last failing tests in `normalize` test suite |
2 years ago |
Haled Odat | 333b94a9ec |
Fix `String.prototype.substr()` (#2805)
Fixes the remaining failing tests on `String.prototype.substr()` It changes the following: - Fixes the remaining failing tests on `String.prototype.substr() - Move `substr` under the `"annex-b"` feature flag. |
2 years ago |
Haled Odat | 24a4770b21 |
Implement Annex-B string html methods (#2798)
Implements all Annex-B string html methods, they are deprecated but still part of the ES5 spec. They have been feature gated under the `"annex-b"` feature flag |
2 years ago |
Haled Odat | 09d57e75fb |
Fix `ThrowTypeError` intrinsic (#2797)
Fixes the remaining failing tests on the `ThrowTypeError` test suite |
2 years ago |
José Julián Espina | 1e75fd0d21 |
Make `Realm` shareable between functions (#2801)
This Pull Request fixes #2317 and #1835, finally giving our engine proper realms 🥳. It changes the following: - Extracts the compile environment stack from `Realm` and into `Vm`. - Adjusts the bytecompiler to accommodate this change. - Adjusts `call/construct_internal` to accommodate this change. This also coincidentally fixed #2317, which I'm pretty happy about. - Adjusts several APIs (`NativeJob`, `Realm`) and builtins (`eval`, initializers) to accommodate this change. - Adjusts `JsNativeError`s to hold a reference to the Realm from which they were created. This only affects errors created within calls to function objects. Native calls don't need to set the realm because it's inherited by the next outer active function object. TLDR: `JsError` API stays the same, we just set the origin Realm of errors in `JsObject::call/construct_internal`. |
2 years ago |
Haled Odat | 7a4d6526b0 |
Fix `String.prototype.replace()` order of `ToString` execution (#2799)
Fix order of `ToString` execution, there are 3 failing tests on `.replace()` but they seem to be regex related |
2 years ago |
dependabot[bot] | dcf29505e0 |
Bump test262 from `be0abd9` to `f756ff6` (#2802)
Bumps [test262](https://github.com/tc39/test262) from `be0abd9` to `f756ff6`. <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
Haled Odat | 88fb15c0e5 |
Fix `Symbol.prototype[@@iterator]` (#2800)
It changes the following: - Fixes`Symbol.prototype[@@iterator]` so it calls `RequireObjectCoercible` and then `ToString` - Makes string iterator store a `JsString` which should be faster, instead of `JsValue` then calling `ToString` on every iteration |
2 years ago |
José Julián Espina | 34d6b93f36 |
Fix cross-realm construction bugs (#2786)
This Pull Request fixes test [`assert-throws-same-realm.js`](
|
2 years ago |
dependabot[bot] | 928d67b28e |
Bump monaco-editor from 0.37.0 to 0.37.1 (#2791)
Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.37.0 to 0.37.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md">monaco-editor's changelog</a>.</em></p> <blockquote> <h2>[0.37.1]</h2> <ul> <li>Fixes Inline Completions feature</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 12974ec800 |
Bump getrandom from 0.2.8 to 0.2.9 (#2792)
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.8 to 0.2.9. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md">getrandom's changelog</a>.</em></p> <blockquote> <h2>[0.2.9] - 2023-04-03</h2> <h3>Added</h3> <ul> <li>AIX support <a href="https://redirect.github.com/rust-random/getrandom/issues/282">#282</a></li> <li><code>getrandom_uninit</code> function <a href="https://redirect.github.com/rust-random/getrandom/issues/291">#291</a></li> <li><code>wasm64-unknown-unknown</code> support <a href="https://redirect.github.com/rust-random/getrandom/issues/303">#303</a></li> <li>tvOS and watchOS support <a href="https://redirect.github.com/rust-random/getrandom/issues/317">#317</a></li> <li>QNX/nto support <a href="https://redirect.github.com/rust-random/getrandom/issues/325">#325</a></li> <li>Support for <code>getrandom</code> syscall on NetBSD ≥ 10.0 <a href="https://redirect.github.com/rust-random/getrandom/issues/331">#331</a></li> <li><code>RtlGenRandom</code> fallback for non-UWP Windows <a href="https://redirect.github.com/rust-random/getrandom/issues/337">#337</a></li> </ul> <h3>Breaking Changes</h3> <ul> <li>Update MSRV to 1.36 <a href="https://redirect.github.com/rust-random/getrandom/issues/291">#291</a></li> </ul> <h3>Fixed</h3> <ul> <li>Solaris/OpenBSD/Dragonfly build <a href="https://redirect.github.com/rust-random/getrandom/issues/301">#301</a></li> </ul> <h3>Changed</h3> <ul> <li>Update MSRV to 1.36 <a href="https://redirect.github.com/rust-random/getrandom/issues/291">#291</a></li> <li>Use getentropy on Emscripten <a href="https://redirect.github.com/rust-random/getrandom/issues/307">#307</a></li> <li>Solaris: consistantly use <code>/dev/random</code> source <a href="https://redirect.github.com/rust-random/getrandom/issues/310">#310</a></li> <li>Move 3ds selection above rdrand/js/custom fallback <a href="https://redirect.github.com/rust-random/getrandom/issues/312">#312</a></li> <li>Remove buffer zeroing from Node.js implementation <a href="https://redirect.github.com/rust-random/getrandom/issues/315">#315</a></li> <li>Use <code>open</code> instead of <code>open64</code> <a href="https://redirect.github.com/rust-random/getrandom/issues/326">#326</a></li> <li>Remove #cfg from bsd_arandom.rs <a href="https://redirect.github.com/rust-random/getrandom/issues/332">#332</a></li> <li>Hermit: use <code>sys_read_entropy</code> syscall <a href="https://redirect.github.com/rust-random/getrandom/issues/333">#333</a></li> <li>Eliminate potential panic in sys_fill_exact <a href="https://redirect.github.com/rust-random/getrandom/issues/334">#334</a></li> <li>rdrand: Remove checking for 0 and !0 and instead check CPU family and do a self-test <a href="https://redirect.github.com/rust-random/getrandom/issues/335">#335</a></li> <li>Move <code>__getrandom_custom</code> definition into a const block <a href="https://redirect.github.com/rust-random/getrandom/issues/344">#344</a></li> <li>Switch the custom backend to Rust ABI <a href="https://redirect.github.com/rust-random/getrandom/issues/347">#347</a></li> </ul> <p><a href="https://redirect.github.com/rust-random/getrandom/issues/282">#282</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/282">rust-random/getrandom#282</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/291">#291</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/291">rust-random/getrandom#291</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/301">#301</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/301">rust-random/getrandom#301</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/303">#303</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/303">rust-random/getrandom#303</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/307">#307</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/307">rust-random/getrandom#307</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/310">#310</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/310">rust-random/getrandom#310</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/312">#312</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/312">rust-random/getrandom#312</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/315">#315</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/315">rust-random/getrandom#315</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/317">#317</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/317">rust-random/getrandom#317</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/325">#325</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/325">rust-random/getrandom#325</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/326">#326</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/326">rust-random/getrandom#326</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/331">#331</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/331">rust-random/getrandom#331</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/332">#332</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/332">rust-random/getrandom#332</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/333">#333</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/333">rust-random/getrandom#333</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/334">#334</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/334">rust-random/getrandom#334</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/335">#335</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/335">rust-random/getrandom#335</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/337">#337</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/337">rust-random/getrandom#337</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/344">#344</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/344">rust-random/getrandom#344</a> <a href="https://redirect.github.com/rust-random/getrandom/issues/347">#347</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/347">rust-random/getrandom#347</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 2f2d59fd23 |
Bump webpack from 5.77.0 to 5.78.0 (#2787)
Bumps [webpack](https://github.com/webpack/webpack) from 5.77.0 to 5.78.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/webpack/webpack/releases">webpack's releases</a>.</em></p> <blockquote> <h2>v5.78.0</h2> <h2>Features</h2> <ul> <li>Implement <code>amdContainer</code> support for AMD libraries (Fixes <a href="https://redirect.github.com/webpack/webpack/issues/16561">#16561</a>) by <a href="https://github.com/long76"><code>@long76</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16562">webpack/webpack#16562</a></li> </ul> <h2>Bugfixes</h2> <ul> <li>[CSS] - Nested atRule's <code>@media</code> or <code>@supports</code> now properly are replaced with unique identifiers by <a href="https://github.com/noreiller"><code>@noreiller</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/15812">webpack/webpack#15812</a></li> <li>[CSS] - Fix bug where closing parenthesis in CSS were not properly parsed and compiled by <a href="https://github.com/janlent1"><code>@janlent1</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16864">webpack/webpack#16864</a></li> <li>Fix an issue where <code>oneOf</code> rule has been picked multiple times by <a href="https://github.com/xiaoxiaojx"><code>@xiaoxiaojx</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16477">webpack/webpack#16477</a></li> <li>Add <code>createRequire</code> support for <code>node:module</code> prefix by <a href="https://github.com/alexander-akait"><code>@alexander-akait</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16904">webpack/webpack#16904</a></li> <li>Fix bug where self-referencing a package in a shared module failed by <a href="https://github.com/weareoutman"><code>@weareoutman</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16685">webpack/webpack#16685</a></li> </ul> <h2>Performance</h2> <ul> <li>Make <code>ErrorHelpers</code> named functions; Add types by <a href="https://github.com/TheLarkInn"><code>@TheLarkInn</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16893">webpack/webpack#16893</a></li> <li>Introduce <code>ModuleTypeConstants</code> for plugins by <a href="https://github.com/TheLarkInn"><code>@TheLarkInn</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16896">webpack/webpack#16896</a></li> <li>Refactor memory footprint in string usages for multiple plugins by <a href="https://github.com/TheLarkInn"><code>@TheLarkInn</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16894">webpack/webpack#16894</a></li> <li>Add more module type constants, use them across codebase by <a href="https://github.com/TheLarkInn"><code>@TheLarkInn</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16898">webpack/webpack#16898</a></li> </ul> <h2>Contributor Experience</h2> <ul> <li>Implement default PR Template to use GitHub Copilot for PR's integration and fix template name usage by <a href="https://github.com/geromegrignon"><code>@geromegrignon</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16890">webpack/webpack#16890</a></li> <li>ci: update actions/cache to v3 by <a href="https://github.com/armujahid"><code>@armujahid</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16462">webpack/webpack#16462</a></li> <li>webpack org Collaborators and Members now have <a href="https://redirect.github.com/openjs-foundation/cross-project-council/issues/1009">funded GitHub Codespaces!</a></li> </ul> <p><a href="https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=3678731&machine=standardLinux32gb&location=WestUs2"><img src="https://github.com/codespaces/badge.svg" alt="Open in GitHub Codespaces" /></a></p> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/geromegrignon"><code>@geromegrignon</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16890">webpack/webpack#16890</a></li> <li><a href="https://github.com/armujahid"><code>@armujahid</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16462">webpack/webpack#16462</a></li> <li><a href="https://github.com/long76"><code>@long76</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16562">webpack/webpack#16562</a></li> <li><a href="https://github.com/weareoutman"><code>@weareoutman</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16685">webpack/webpack#16685</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/webpack/webpack/compare/v5.77.0...v5.78.0">https://github.com/webpack/webpack/compare/v5.77.0...v5.78.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 53e08205f5 |
Bump serde_yaml from 0.9.19 to 0.9.21 (#2789)
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.19 to 0.9.21. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's releases</a>.</em></p> <blockquote> <h2>0.9.21</h2> <ul> <li>Make <code>Tag::new</code> panic if given empty string, since YAML has no syntax for an empty tag</li> </ul> <h2>0.9.20</h2> <ul> <li>Allow an empty YAML document to deserialize to <code>None</code> or <code>Value::Null</code>, in addition to the previously supported empty vector, empty map, and struct with no required fields</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
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=" |
2 years ago |
Haled Odat | 570bc85ebe |
Implement debug object for CLI (#2772)
Currently some debugging stuff in JavaScript land is difficult to impossible, like triggering a GC collect, this is not impossible to do in JavaScript the way I triggered it was by creating a huge amount of object `for (let i = 0; i < 100000; ++i) { ({}) }` but this is cumbersome and not guaranteed to trigger a gc. This PR implements `--debug-object` flag that injects the `$boa` debug object in the context, the object is separated into modules currently `gc`, `function`, `object`. We can now do `$boa.gc.collect()`, which force triggers a GC collect. Or sometimes I wanted a trace (the current solution is great, you can trace stuff like `>>> 1 + 1` but that is also it's limitation), it traces everything, I sometimes have a scenario and just want to trace a single function in that scenario, that's why I added the `$boa.function.trace(func, this, ...args)` It only traces the function. ```js >> $boa.function.trace((a, b) => a + b, undefined, 1, 2) -------------------------Compiled Output: ''-------------------------- Location Count Opcode Operands 000000 0000 DefInitArg 0000: 'a' 000005 0001 DefInitArg 0001: 'b' 000010 0002 RestParameterPop 000011 0003 GetName 0000: 'a' 000016 0004 GetName 0001: 'b' 000021 0005 Add 000022 0006 Return 000023 0007 PushUndefined 000024 0008 Return ... (cut for brevity) ... ``` It also implements `$boa.function.flowgraph(func, options)`: ```js $boa.function.flowgraph(func, 'graphviz') $boa.function.flowgraph(func, { format: 'mermaid', direction: 'TopBottom' }) ``` Printing the object pointer: ```js $boa.object.id({}) // '0x566464F33' ``` It currently implements some functionality which we can grow it with our debugging needs since we are not restricted by a spec we can add whatever we want :) I was originally going to implement this in #2723 (but the PR is too big), for shapes having functions like: ```js $boa.shape.type({}) // Shared shape $boa.shape.id({}) // 0x8578FG355 (objects, shape pointer) $boa.shape.flowgraph({}) // printing the shape transition chain, like $boa.function.flowgraph ``` Shapes chains are very hard to debug once they are big... so having this type of debugging capability would make it much easier. |
2 years ago |
dependabot[bot] | 8528ccb399 |
Bump monaco-editor from 0.36.1 to 0.37.0 (#2784)
Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.36.1 to 0.37.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md">monaco-editor's changelog</a>.</em></p> <blockquote> <h2>[0.37.0]</h2> <ul> <li>New <code>registerLinkOpener</code> API</li> <li>New <code>onLanguageEncountered</code> event for when a language is encountered during tokenization.</li> <li>Updated TypeScript to 5.0</li> <li>New required field <code>canFormatMultipleRanges</code> on <code>DocumentRangeFormattingEditProvider</code></li> <li>Bugfixes</li> </ul> <p>Contributions to <code>monaco-editor</code>:</p> <ul> <li><a href="https://github.com/danboo"><code>@danboo (Dan Boorstein)</code></a>: add perl module (.pm) extension [PR <a href="https://redirect.github.com/microsoft/monaco-editor/issues/3258">#3258</a>](<a href="https://redirect.github.com/microsoft/monaco-editor/pull/3258">microsoft/monaco-editor#3258</a>)</li> <li><a href="https://github.com/miloush"><code>@miloush (Jan Kučera)</code></a>: Include .xsd and .xslt as an XML extension [PR <a href="https://redirect.github.com/microsoft/monaco-editor/issues/3866">#3866</a>](<a href="https://redirect.github.com/microsoft/monaco-editor/pull/3866">microsoft/monaco-editor#3866</a>)</li> <li><a href="https://github.com/nnnnoel"><code>@nnnnoel (Noel Kim (김민혁))</code></a>: Add CommonJS, ESM extension for TS [PR <a href="https://redirect.github.com/microsoft/monaco-editor/issues/3264">#3264</a>](<a href="https://redirect.github.com/microsoft/monaco-editor/pull/3264">microsoft/monaco-editor#3264</a>)</li> <li><a href="https://github.com/PmcFizz"><code>@PmcFizz (Fizz)</code></a>: opt example [PR <a href="https://redirect.github.com/microsoft/monaco-editor/issues/3726">#3726</a>](<a href="https://redirect.github.com/microsoft/monaco-editor/pull/3726">microsoft/monaco-editor#3726</a>)</li> <li><a href="https://github.com/tamayika"><code>@tamayika</code></a> <ul> <li>Fix playground samples type errors and add CI test [PR <a href="https://redirect.github.com/microsoft/monaco-editor/issues/3722">#3722</a>](<a href="https://redirect.github.com/microsoft/monaco-editor/pull/3722">microsoft/monaco-editor#3722</a>)</li> <li>Add custom keybinding example [PR <a href="https://redirect.github.com/microsoft/monaco-editor/issues/3848">#3848</a>](<a href="https://redirect.github.com/microsoft/monaco-editor/pull/3848">microsoft/monaco-editor#3848</a>)</li> </ul> </li> <li><a href="https://github.com/yuri1969"><code>@yuri1969 (yuri)</code></a>: Various YAML improvements [PR <a href="https://redirect.github.com/microsoft/monaco-editor/issues/3864">#3864</a>](<a href="https://redirect.github.com/microsoft/monaco-editor/pull/3864">microsoft/monaco-editor#3864</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 2b32967c7f |
Bump peter-evans/create-or-update-comment from 2 to 3 (#2785)
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) from 2 to 3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/peter-evans/create-or-update-comment/releases">peter-evans/create-or-update-comment's releases</a>.</em></p> <blockquote> <h2>Create or Update Comment v3.0.0</h2> <h2>What's new</h2> <ul> <li>Now supports replacing reactions on a comment by setting input <code>reactions-edit-mode</code> to <code>replace</code>. The default behaviour has not changed and will <code>append</code> reactions.</li> <li>Chose how the action should append the comment body with input <code>append-separator</code>. The default behaviour is to add a <code>newline</code>. Other options are <code>space</code> and <code>none</code>.</li> <li><code>body-file</code> is deprecated in favour of <code>body-path</code>. The behaviour is unchanged.</li> </ul> <h2>What's Changed</h2> <ul> <li>v3 by <a href="https://github.com/peter-evans"><code>@peter-evans</code></a> in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/161">peter-evans/create-or-update-comment#161</a></li> <li>Update some links in the README by <a href="https://github.com/Kurt-von-Laven"><code>@Kurt-von-Laven</code></a> in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/152">peter-evans/create-or-update-comment#152</a></li> <li>9 dependency updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Kurt-von-Laven"><code>@Kurt-von-Laven</code></a> made their first contribution in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/152">peter-evans/create-or-update-comment#152</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/peter-evans/create-or-update-comment/compare/v2.1.1...v3.0.0">https://github.com/peter-evans/create-or-update-comment/compare/v2.1.1...v3.0.0</a></p> <h2>Create or Update Comment v2.1.1</h2> <p>⚙️ Fixes the recent Json5 vulnerability.</p> <h2>What's Changed</h2> <ul> <li>11 dependency updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/peter-evans/create-or-update-comment/compare/v2.1.0...v2.1.1">https://github.com/peter-evans/create-or-update-comment/compare/v2.1.0...v2.1.1</a></p> <h2>Create or Update Comment v2.1.0</h2> <p>⭐ Adds input <code>body-file</code>, the path to a file containing the comment body.</p> <h2>What's Changed</h2> <ul> <li>Replace set-output by <a href="https://github.com/peter-evans"><code>@peter-evans</code></a> in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/130">peter-evans/create-or-update-comment#130</a></li> <li>Bump chuhlomin/render-template from 1.5 to 1.6 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/132">peter-evans/create-or-update-comment#132</a></li> <li>Support reading body from a file by <a href="https://github.com/umanghome"><code>@umanghome</code></a> in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/115">peter-evans/create-or-update-comment#115</a></li> <li>Add input body-file by <a href="https://github.com/peter-evans"><code>@peter-evans</code></a> in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/133">peter-evans/create-or-update-comment#133</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/umanghome"><code>@umanghome</code></a> made their first contribution in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/115">peter-evans/create-or-update-comment#115</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/peter-evans/create-or-update-comment/compare/v2.0.1...v2.1.0">https://github.com/peter-evans/create-or-update-comment/compare/v2.0.1...v2.1.0</a></p> <h2>Create or Update Comment v2.0.1</h2> <p>⚙️ Bumps <code>@actions/core</code> to transition away from <a href="https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/">deprecated runner commands</a>.</p> <h2>What's Changed</h2> <ul> <li>Add workflow permissions by <a href="https://github.com/peter-evans"><code>@peter-evans</code></a> in <a href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/120">peter-evans/create-or-update-comment#120</a></li> <li>9 dependency updates by <a href="https://github.com/github-actions"><code>@github-actions</code></a> and <a href="https://github.com/dependabot">https://github.com/dependabot</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/peter-evans/create-or-update-comment/compare/v2.0.0...v2.0.1">https://github.com/peter-evans/create-or-update-comment/compare/v2.0.0...v2.0.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 0eb4aecc10 |
Bump sys-locale from 0.2.4 to 0.3.0 (#2781)
Bumps [sys-locale](https://github.com/1Password/sys-locale) from 0.2.4 to 0.3.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/1Password/sys-locale/releases">sys-locale's releases</a>.</em></p> <blockquote> <h2>v0.3.0</h2> <p>See <a href="https://github.com/1Password/sys-locale/blob/main/CHANGELOG.md#030---2023-04-04">the changelog</a> for details.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/1Password/sys-locale/blob/main/CHANGELOG.md">sys-locale's changelog</a>.</em></p> <blockquote> <h2>[0.3.0] - 2023-04-04</h2> <h3>Changed</h3> <ul> <li>The crate now only uses <code>wasm-bindgen</code> when targeting WebAssembly on the web. Use the new <code>js</code> feature to target the web.</li> </ul> <h3>Fixed</h3> <ul> <li>The crate now compiles for unsupported platforms.</li> <li>Cleaned up typos and grammar in README.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 57bbacb502 |
Bump num_enum from 0.5.11 to 0.6.0 (#2782)
Bumps [num_enum](https://github.com/illicitonion/num_enum) from 0.5.11 to 0.6.0. <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 4add3be0ff |
Bump spin from 0.9.7 to 0.9.8 (#2780)
Bumps [spin](https://github.com/mvdnes/spin-rs) from 0.9.7 to 0.9.8. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/mvdnes/spin-rs/blob/master/CHANGELOG.md">spin's changelog</a>.</em></p> <blockquote> <h1>[0.9.8] - 2023-04-03</h1> <h3>Fixed</h3> <ul> <li>Unsoundness in <code>Once::try_call_once</code> caused by an <code>Err(_)</code> result</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/mvdnes/spin-rs/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=spin&package-manager=cargo&previous-version=0.9.7&new-version=0.9.8)](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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/boa-dev/boa/network/alerts). </details> |
2 years ago |
José Julián Espina | 0babe195fb |
Implement `escape` and `unescape` (#2768)
<!--- Thank you for contributing to Boa! Please fill out the template below, and remove or add any information as you feel necessary. ---> This Pull Request implements the [`escape`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/escape) and [`unescape`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape) functions. Both are technically deprecated, but they're also part of the [Additional ECMAScript Features for Web Browsers](https://tc39.es/ecma262/#sec-additional-ecmascript-features-for-web-browsers) section, so it is preferable to have them in place. |
2 years ago |
Haled Odat | 0fb0558d44 |
Add `json-parse-with-source` feature to `boa_tester` (#2778)
This PR resolves the failing CI in #2777 It changes the following: - Adds `json-parse-with-source` feature to `boa_tester` - Bumps `test262` module to `be0abd9` |
2 years ago |
dependabot[bot] | 077142710f |
Bump syn from 2.0.12 to 2.0.13 (#2776)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.12 to 2.0.13. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.13</h2> <ul> <li>Improve spans of Expr::Field parsed from a float Literal (<a href="https://redirect.github.com/dtolnay/syn/issues/1433">#1433</a>, <a href="https://redirect.github.com/dtolnay/syn/issues/1436">#1436</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 9fd79fa580 |
Bump proc-macro2 from 1.0.54 to 1.0.56 (#2775)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.54 to 1.0.56. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/proc-macro2/releases">proc-macro2's releases</a>.</em></p> <blockquote> <h2>1.0.56</h2> <ul> <li>Circumvent clippy::octal_escapes lint inside generated string and byte-string literals (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/363">#363</a>, <a href="https://redirect.github.com/dtolnay/proc-macro2/issues/380">#380</a>)</li> <li>Provide RefUnwindSafe impls for compilers older than 1.58 (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/382">#382</a>)</li> </ul> <h2>1.0.55</h2> <ul> <li>Set a meaningful <code>Span</code> for literals produced via the <code>FromStr</code> impl of <code>Literal</code> (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/378">#378</a>)</li> <li>Implement <code>Literal::subspan</code> in non-macro contexts when "span-locations" feature is enabled (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/379">#379</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 4eeada7a75 |
Bump webpack-dev-server from 4.13.1 to 4.13.2 (#2774)
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.13.1 to 4.13.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/webpack/webpack-dev-server/releases">webpack-dev-server's releases</a>.</em></p> <blockquote> <h2>v4.13.2</h2> <h3><a href="https://github.com/webpack/webpack-dev-server/compare/v4.13.1...v4.13.2">4.13.2</a> (2023-03-31)</h3> <h3>Bug Fixes</h3> <ul> <li>prevent open 0.0.0.0 in browser due windows problems (<a href=" |
2 years ago |
dependabot[bot] | 08ed2a4ae0 |
Bump syn from 2.0.11 to 2.0.12 (#2770)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.11 to 2.0.12. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.12</h2> <ul> <li>Refer to <code>compile_error!</code> by absolute path in token stream produced by syn::Error::to_compile_error (<a href="https://redirect.github.com/dtolnay/syn/issues/1431">#1431</a>, thanks <a href="https://github.com/smoelius"><code>@smoelius</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 59d1a43107 |
Bump futures-util from 0.3.27 to 0.3.28 (#2769)
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.27 to 0.3.28. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/futures-rs/releases">futures-util's releases</a>.</em></p> <blockquote> <h2>0.3.28</h2> <ul> <li>Update to syn 2. This raises MSRV of utility crates to 1.56. (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2730">#2730</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2733">#2733</a>)</li> <li>Fix bug in <code>FlattenUnordered</code> (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2726">#2726</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2728">#2728</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md">futures-util's changelog</a>.</em></p> <blockquote> <h1>0.3.28 - 2023-03-30</h1> <ul> <li>Update to syn 2. This raises MSRV of utility crates to 1.56. (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2730">#2730</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2733">#2733</a>)</li> <li>Fix bug in <code>FlattenUnordered</code> (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2726">#2726</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2728">#2728</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
Iban Eguia Moraza | 540aa2be4f |
Initial version of a JS -> Rust conversion trait. (#2276)
This Pull Request closes #1975. It's still a work in progress, but tries to go in that direction. It changes the following: - Adds a new `TryFromJs` trait, that can be derived using a new `boa_derive` crate. - Adds a new `try_js_into()` function that, similarly to the standard library `TryInto` trait Things to think about: - Should the `boa_derive` crate be re-exported in `boa_engine` using a `derive` feature, similar to how it's done in `serde`? - The current implementation only converts perfectly valid values. So, if we try to convert a big integer into an `i8`, or any floating point number to an `f32`. So, you cannot derive `TryFromJs` for structures that contain an `f32` for example (you can still manually implement the trait, though, and decide in favour of a loss of precision). Should we also provide some traits for transparent loss of precision? - Currently, you cannot convert between types, so if the JS struct has an integer, you cannot cast it to a boolean, for example. Should we provide a `TryConvertJs` trait, for example to force conversions? - Currently we only have basic types and object conversions. Should add `Array` to `Vec` conversion, for example, right? Should we also add `TypedArray` conversions? What about `Map` and `Set`? Does this step over the fine grained APIs that we were creating? Note that this still requires a bunch of documentation, tests, and validation from the dev team and from the users that requested this feature. I'm particularly interested in @lastmjs's thoughts on this API. I already added an usage example in `boa_examples/src/bin/derive.rs`. Co-authored-by: jedel1043 <jedel0124@gmail.com> |
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 |
dependabot[bot] | 6474dda09d |
Bump webpack from 5.76.3 to 5.77.0 (#2765)
Bumps [webpack](https://github.com/webpack/webpack) from 5.76.3 to 5.77.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/webpack/webpack/releases">webpack's releases</a>.</em></p> <blockquote> <h2>v5.77.0</h2> <h2>New Features</h2> <ul> <li>Add a new output option, <code>output.workerPublicPath</code> by <a href="https://github.com/thomastay"><code>@thomastay</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16671">webpack/webpack#16671</a></li> </ul> <h2>Developer Experience</h2> <ul> <li>Improve <code>resolve.extensions</code> error message to suggest when <code>"."</code> is missing before the extension by <a href="https://github.com/snitin315"><code>@snitin315</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16807">webpack/webpack#16807</a></li> </ul> <h2>Contributor Experience</h2> <ul> <li>Enable GitHub Copilot for PR's into default Pull Request Template by <a href="https://github.com/TheLarkInn"><code>@TheLarkInn</code></a> in <a href="https://redirect.github.com/webpack/webpack/pull/16881">webpack/webpack#16881</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/thomastay"><code>@thomastay</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/16671">webpack/webpack#16671</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/webpack/webpack/compare/v5.76.3...v5.77.0">https://github.com/webpack/webpack/compare/v5.76.3...v5.77.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | d119934f98 |
Bump clap from 4.2.0 to 4.2.1 (#2766)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.0 to 4.2.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.2.1</h2> <h2>[4.2.1] - 2023-03-28</h2> <h3>Fixes</h3> <ul> <li>Don't highlight uninteresting parts of the error message</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.2.1] - 2023-03-28</h2> <h3>Fixes</h3> <ul> <li>Don't highlight uninteresting parts of the error message</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
Haled Odat | edb0417543 |
Shrink size of `IndexedProperties` (#2757)
Most objects don't have indexed properties, and those who have, have dense properties, this PR uses `ThinVec` to reduce the size of dense properties. It changes the following: - Trim `16` bytes from `IndexedProperties`, this reduces all objects size |
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 |