Paul Lancaster
6bcfc7a237
Strict Mode Lex/Parse ( #717 )
...
* Add strict mode to lex trait
* Lexer reserved keyword identifier strict mode lexing
* Prevent with statement in strict mode
* Add strict_mode flag to parse methods
* Enable function scope strict mode
* Script scope strict mode
* Delete statement strict mode
* Function decl in block in strict mode
* Fix merge
* Strict mode code tests
* Move strict_mode flag onto Lexer
* Move strict_mode lex flag to Lexer Cursor
* Isolated failing test parts
* Fixed bug in func decl in block in strict mode
* BindingIdentifier strict mode
* use to_string
* Remove dbg
* Add missing spec ref
* Missing spec ref for dup func params
* Remove clone
* .to_string -> .as_ref
4 years ago
dependabot[bot]
950ca183a0
Bump style-loader from 1.2.1 to 1.3.0 ( #795 )
4 years ago
John Doneth
d6c252d3be
Fix zero argument panic in JSON.parse() ( #785 )
...
* Fix 0 arity panic in JSON.parse()
* Requested changes
* Throw syntax error instead of a string error
* Add a test to assert JSON.parse() throws a syntax error
4 years ago
John Doneth
ff358d1d1d
Throw RangeError when BigInt division by zero occurs ( #790 )
4 years ago
Iban Eguia
38b103c25b
Fixing a duplicated attribute in test262 results ( #788 )
4 years ago
croraf
e60d081fbc
Refactor: split ast/node/expression into call and new ( #787 )
4 years ago
Iban Eguia
2a509de554
New test262 results format ( #783 )
4 years ago
George Roman
31e3174ca9
Support for symbols as property keys for `Object.defineProperty` ( #770 )
4 years ago
Halid Odat
eb1fd280d5
`ConstructorBuilder`, `ObjectInitializer`, cache standard objects and fix global object attributes ( #722 )
...
- Add BuiltIn trait
- Add ConstructorBuilder
- Add ObjectInitializer
- Cache core standard objects
- More efficient ConstructorBuilder::build()
- Allow to specify which prototype to inherit
- Refactor object property insertion
- Made ClassBuilder use ConstructorBuilder
- Make ConstructorBuilder::build() return GcObject
- Implement Debug for ClassBuilder and ConstructorBuilder
- Make ClassBuilder methods return &mut Self
- Make ObjectBuilder::build() return a GcObject
- Fixed global objects/properies attributes
- Fixed function prototype and attributes
- doc cached standard objects
- Set error object types to inherit from `Error.prototype`
- Added FunctionBuilder
- Add #[inline]
4 years ago
(´⌣`ʃƪ)
aad860db84
Throw TypeError if regex is passed to startsWith, endsWith, includes ( #782 )
4 years ago
Iban Eguia
b16f0ab0f7
Revert "Using the upstream version of the benchmark action" ( #781 )
...
This reverts commit 3cb8c94538
.
4 years ago
Halid Odat
3e60d2c554
Change author to boa-dev ( #764 )
4 years ago
joshwd36
87d9e9cea8
Implementation of for...of loops ( #704 )
...
* Initial implementation of for...of loop
* Initial implementation of for...of loop
* Extend for...of to support var, let, and const lhs
* Use cached well known symbols
* Nest use statements
* Nest use statements
* Add tests.
* Initial implementation of for...of loop
* Extend for...of to support var, let, and const lhs
* Use cached well known symbols
* Nest use statements
* Nest use statements
* Add tests.
* Add tests, cache iterator prototypes, pull common iterator functions out into their own file to allow for repeated use.
* Initial implementation of for...of loop
* Extend for...of to support var, let, and const lhs
* Use cached well known symbols
* Nest use statements
* Nest use statements
* Add tests.
* Add tests, cache iterator prototypes, pull common iterator functions out into their own file to allow for repeated use.
* Initial implementation of for...of loop
* Extend for...of to support var, let, and const lhs
* Use cached well known symbols
* Initial implementation of for...of loop
* Nest use statements
* Add string iterator
* Clean up merge
* Use ctx.global_iterator()
* Merge upstream
* Use u32 as array next index
* Use into
* Use boa::Result
* Tidy up use statement
* Tidy up use statement
4 years ago
Iban Eguia
3cb8c94538
Using the upstream version of the benchmark action ( #768 )
4 years ago
dependabot[bot]
ac85ee07d5
Bump measureme from 0.7.1 to 0.8.0 ( #765 )
...
Bumps [measureme](https://github.com/rust-lang/measureme ) from 0.7.1 to 0.8.0.
- [Release notes](https://github.com/rust-lang/measureme/releases )
- [Changelog](https://github.com/rust-lang/measureme/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/measureme/compare/0.7.1...0.8.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
João Borges
347dd7c33f
Update CHANGELOG.md ( #767 )
4 years ago
Halid Odat
45c5758e14
Ignore tests from codecov count and disable annotations ( #724 )
4 years ago
George Roman
767a8cc9c6
Move exec implementations together with AST node structs ( #735 )
...
* Move exec implementations together with AST node structs
4 years ago
jasonwilliams
adc4a91983
update publish action to run from boa dir
4 years ago
Jason Williams
2d8f7b7dbc
changelog for v0.10.0 ( #738 )
...
Changelog for v0.10.0
Co-authored-by: joshwd36 <joshwd36@users.noreply.github.com>
Co-authored-by: Halid Odat <halidodat@gmail.com>
4 years ago
Jason Williams
09a1296ee6
Add release action ( #739 )
4 years ago
Jason Williams
07ff7a8d34
remove deprecated comments ( #754 )
4 years ago
Saquib
2feb72a0e4
Fix parse error throwing a `TypeError`, instead of `SyntaxError` ( #748 )
4 years ago
neeldug
672aa11b01
Add MacOS check and test to CI ( #744 )
...
adds macos checks and tests to pull request ci
4 years ago
João Borges
cd2ea032f6
Merge pull request #737 from RageKnify/fix/729_obj_toString
...
Fix output of Object.toString()
4 years ago
dependabot[bot]
e83a03ad6f
Bump serde_json from 1.0.57 to 1.0.58 ( #747 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.57...v1.0.58 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Iban Eguia
8816df8f43
New fix attempt ( #745 )
...
* New fix attempt
* Do not rebase, just fast forward
4 years ago
RageKnify
05f076c2eb
Test: Add test case for [object Object]
4 years ago
RageKnify
5e3db42e63
Fix: Make Object.toString() spec compliant*
...
Test: Add testing of Object.toString(), need update once
Function.prototype.call is implemented
* not fully because Arguments Exotic Objects are not yet implemented
4 years ago
Iban Eguia
5b74d6f895
Fix test262 result uploading in CI ( #743 )
4 years ago
neeldug
be6ac0c120
chore(boa): update criterion from 0.3.2 to 0.3.3 ( #742 )
...
was blocked due to incompatibilities with `critcmp`, however,
`critcmp` has released v0.1.4 and so `critcmp` is no longer functional
with older versions of criterion. This may require criterion compare
action modification
4 years ago
RageKnify
0b797d0d33
Fix: Fix output of Object.toString(), closes boa-dev/boa#729
4 years ago
Jason Williams
7b13c9d5ab
update packages ( #733 )
4 years ago
Jason Williams
2a17e24d5b
Fix hanging test262 bug by setting the length on String objects ( #728 )
...
Co-authored-by: Halid Odat <halidodat@gmail.com>
4 years ago
Jason Williams
bb57270b85
label statement implementation ( #549 )
...
Co-authored-by: Halid Odat <halidodat@gmail.com>
4 years ago
dependabot[bot]
29560a53f6
Bump monaco-editor from 0.21.1 to 0.21.2 ( #725 )
...
Bumps [monaco-editor](https://github.com/Microsoft/monaco-editor ) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/Microsoft/monaco-editor/releases )
- [Changelog](https://github.com/microsoft/monaco-editor/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Microsoft/monaco-editor/compare/v0.21.1...v0.21.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
fa07d4ac8c
Bump chrono from 0.4.15 to 0.4.18 ( #726 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.15 to 0.4.18.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.15...v0.4.18 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
João Borges
3ce547d427
Add fast path for string concatenation ( #723 )
4 years ago
João Borges
0348ba9323
Refactor: Value::to_object to return GcObject ( #712 )
4 years ago
David
01b5cec04f
Fix clippy on Nightly ( #668 )
4 years ago
dependabot[bot]
8a241a40e3
Bump monaco-editor from 0.21.0 to 0.21.1 ( #715 )
...
Bumps [monaco-editor](https://github.com/Microsoft/monaco-editor ) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/Microsoft/monaco-editor/releases )
- [Changelog](https://github.com/microsoft/monaco-editor/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Microsoft/monaco-editor/compare/v0.21.0...v0.21.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Arpit Saxena
ad7cd4cc68
Add support for >>>= ( #711 )
4 years ago
dependabot[bot]
c4e08ff5d1
Bump structopt from 0.3.17 to 0.3.18 ( #713 )
...
Bumps [structopt](https://github.com/TeXitoi/structopt ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/TeXitoi/structopt/releases )
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TeXitoi/structopt/compare/v0.3.17...v0.3.18 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Halid Odat
3f6a8ef06b
Fix panic when a self mutating function is constructing an object ( #710 )
4 years ago
Halid Odat
38eaaf44fb
Cache well known symbols ( #706 )
4 years ago
dependabot[bot]
13888c4031
Bump monaco-editor from 0.20.0 to 0.21.0 ( #709 )
...
Bumps [monaco-editor](https://github.com/Microsoft/monaco-editor ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/Microsoft/monaco-editor/releases )
- [Changelog](https://github.com/microsoft/monaco-editor/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Microsoft/monaco-editor/compare/v0.20.0...v0.21.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
5a7d03a192
Bump html-webpack-plugin from 4.4.1 to 4.5.0 ( #708 )
...
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin ) from 4.4.1 to 4.5.0.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases )
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v4.4.1...v4.5.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
sele
1a27f06c7e
fix Value::to_json order of items in array ( #699 )
4 years ago
dependabot[bot]
f393cbcdca
Bump copy-webpack-plugin from 6.1.0 to 6.1.1 ( #707 )
...
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin ) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.1.0...v6.1.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
e7757436db
Bump webpack from 4.44.1 to 4.44.2 ( #705 )
4 years ago