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
2 years ago
Kevin
5a4b410b17
Added period to sentence ( #2939 )
2 years 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
2 years ago
raskad
efeaa40ae2
Fix tagged template creation ( #2925 )
...
* Fix tagged template creation
* Fix template identifier hash
* Apply suggestion
* Apply suggestion
2 years ago
José Julián Espina
4f25f2c749
Allow escaped `async` as binding name ( #2936 )
2 years ago
Haled Odat
190eeb388b
Fix `GetSubstitution` ( #2933 )
2 years ago
dependabot[bot]
eb37614d70
Bump proc-macro2 from 1.0.56 to 1.0.57 ( #2935 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.56 to 1.0.57.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.56...1.0.57 )
---
updated-dependencies:
- dependency-name: proc-macro2
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
dependabot[bot]
cafde4dc8b
Bump wasm-bindgen from 0.2.85 to 0.2.86 ( #2934 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.85 to 0.2.86.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.85...0.2.86 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
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
dependabot[bot]
d13979dea6
Bump syn from 2.0.15 to 2.0.16 ( #2930 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.15...2.0.16 )
---
updated-dependencies:
- dependency-name: syn
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
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>
2 years ago
dependabot[bot]
db0cfae54d
Bump webpack from 5.82.0 to 5.82.1 ( #2926 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.82.0 to 5.82.1.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.82.0...v5.82.1 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
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
Veera
facbacc27e
Fix ES5 selector ( #2924 )
...
* Check if es6id is found
* Check for both esid and es6id
2 years ago
raskad
f57872cf8c
Fix lexical environments in for loops ( #2917 )
...
* Fix lexical environments in for loops
* Fix typo
2 years ago
José Julián Espina
71ea4d2f74
Separate declarative environment kinds ( #2921 )
...
* Separate declarative environment kinds
* Fix typos
2 years ago
dependabot[bot]
c827313c93
Bump wasm-bindgen from 0.2.84 to 0.2.85 ( #2923 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.84 to 0.2.85.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.84...0.2.85 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
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
dependabot[bot]
85a253e168
Bump webpack-cli from 5.1.0 to 5.1.1 ( #2919 )
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/webpack/webpack-cli/releases )
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@5.1.0...webpack-cli@5.1.1 )
---
updated-dependencies:
- dependency-name: webpack-cli
dependency-type: direct:development
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
dependabot[bot]
cb9e1ef810
Bump quote from 1.0.26 to 1.0.27 ( #2920 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.26 to 1.0.27.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.26...1.0.27 )
---
updated-dependencies:
- dependency-name: quote
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
raskad
2faa2470db
Cleanup some bytecompiler code ( #2918 )
2 years ago
Haled Odat
128c13752a
Allow `let` name in for-in loop in non-strict mode ( #2915 )
2 years ago
Haled Odat
d7c03db7fa
Allow escaped `let` as expression ( #2916 )
2 years ago
dependabot[bot]
deb8c8946e
Bump webpack-dev-server from 4.13.3 to 4.15.0 ( #2912 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.13.3 to 4.15.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.13.3...v4.15.0 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
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>
2 years ago
dependabot[bot]
731a061366
Bump terser-webpack-plugin from 5.3.7 to 5.3.8 ( #2911 )
...
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin ) from 5.3.7 to 5.3.8.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.7...v5.3.8 )
---
updated-dependencies:
- dependency-name: terser-webpack-plugin
dependency-type: direct:development
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
dependabot[bot]
8bff6004f9
Bump webpack-cli from 5.0.2 to 5.1.0 ( #2913 )
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases )
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@5.0.2...webpack-cli@5.1.0 )
---
updated-dependencies:
- dependency-name: webpack-cli
dependency-type: direct:development
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>
2 years ago
dependabot[bot]
203de6a515
Bump test262 from `72c0c5e` to `4fc741b` ( #2914 )
...
Bumps [test262](https://github.com/tc39/test262 ) from `72c0c5e` to `4fc741b`.
- [Commits](72c0c5e163...4fc741b008
)
---
updated-dependencies:
- dependency-name: test262
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
719b5a171d
Add SyntaxErrors in GlobalDeclarationInstantiation ( #2908 )
...
* Add SyntaxErrors in GlobalDeclarationInstantiation
* Fix tests
* Apply suggestions
2 years ago
raskad
484cc16bb9
Fix remaining object literal tests ( #2906 )
2 years ago
raskad
c2205052bc
Fix wrong name of `Function.prototype[Symbol.hasInstance]` ( #2905 )
2 years ago
Haled Odat
b4b77e77b4
Implement runtime limits for recursion ( #2904 )
...
* Implement runtime limits for recursion
* Remove "tail-call-optimization" from ignore list
* Run prettier
* Add example and tests
2 years ago
raskad
990e4df947
Make `typeof` throw when accessing uninitialized variables ( #2902 )
2 years ago
Haled Odat
31a60cb448
Direct length access on arrays ( #2796 )
2 years ago
Haled Odat
d20304ea21
Prevent allocation of field names ( #2901 )
2 years ago
Haled Odat
802d796d51
Implement runtime limits for loops ( #2857 )
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
José Julián Espina
debbb91e78
Fix `Date` for dynamic timezones ( #2877 )
...
* Fix `Date` for dynamic timezones
* Fix test
2 years ago
José Julián Espina
9c29b35beb
Enable github queues and remove bors.toml ( #2899 )
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
Iban Eguia Moraza
7cb58dea97
Added a bunch more tests ( #2885 )
...
* Added a bunch more tests
* Removed extra file
* Fix tests
* Increasing code coverage
* Fix clippy lint
* Removed ut_ prefix for tests
2 years ago
dependabot[bot]
af10116e4a
Bump webpack from 5.81.0 to 5.82.0 ( #2897 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.81.0 to 5.82.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.81.0...v5.82.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
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>
2 years ago
Kevin
e320c55d21
Docs update for boa_runtime and console documentation ( #2891 )
...
* Update to primary docs to account for console update
* fix intra-doc link
* Forgot a period
* Fixing the errors on runtime docs
* Add hidden panic to example
2 years ago
dependabot[bot]
0aaf462bac
Bump monaco-editor from 0.37.1 to 0.38.0 ( #2895 )
...
Bumps [monaco-editor](https://github.com/microsoft/monaco-editor ) from 0.37.1 to 0.38.0.
- [Release notes](https://github.com/microsoft/monaco-editor/releases )
- [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md )
- [Commits](https://github.com/microsoft/monaco-editor/compare/v0.37.1...v0.38.0 )
---
updated-dependencies:
- dependency-name: monaco-editor
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>
2 years ago
dependabot[bot]
c0daf11141
Bump clap from 4.2.5 to 4.2.7 ( #2896 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.2.5 to 4.2.7.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.2.5...v4.2.7 )
---
updated-dependencies:
- dependency-name: clap
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
José Julián Espina
c341772547
Make update operations reuse the last found binding locator ( #2876 )
...
* Make update operations reuse the last found binding locator
* Rename opcode
* Reword opcode comments
* Change capacity of `bindings_stack`
* Use the callframe stack to store the current binding
* Fix typo
* Reuse locators on assignment deletions
* Fix binding bug
* Remove leftover comment
2 years ago
José Julián Espina
9795eba1c4
Improve debug output of `JsNativeError` and `Realm` ( #2894 )
...
It was reported that the `dbg!` output of native errors was too long. This PR skips printing the `Realm` of a `JsNativeError`. It also improves the `dbg!` output of `Realm` by skipping printing `Inner` and only printing the inner fields of `Inner`.
2 years ago
José Julián Espina
8ef440aaf3
Refactor guards into a `ContextCleanupGuard` abstraction ( #2890 )
...
Noticed we were using this pattern on a couple of places, so I abstracted it behind a `ContextCleanupGuard` struct.
Let me know if you remember another place where this pattern would apply.
2 years ago
José Julián Espina
73e8d412af
Disallow strict directives with escaped sequences ( #2892 )
...
This Pull Request fixes test 72c0c5e163/test/language/directive-prologue/14.1-5-s.js
by disallowing escaped sequences inside a strict directive.
2 years ago