George Roman
e6a28e6b14
Implement spec compliant Array constructor ( #859 )
...
* Implement spec compliant Array constructor
* Address review comments
4 years ago
croraf
ce535dd6d6
[builtin Map] Map.prototype.entries method and map iterator ( #847 )
...
* Initial commit
* Improving on Map iterator
* Improvements on the iterator
* Almost finish the next method of MapIterator
* Add different kinds to next
* fmt
* Add function description. Add test.
* Added symbol_iterator method. Refactor to use exactly the same function as "entries". Added test for it, unignored pending test.
* Remove TODOs
4 years ago
Iban Eguia
ab5e888fa5
Fix master CI ( #875 )
...
* Fix master CI
* Fixed ignore path
4 years ago
Iban Eguia
9a295fe45c
Removed cache from MacOS builds ( #873 )
4 years ago
jasonwilliams
7f7fe3f6e2
update code coverage to have some variance
4 years ago
George Roman
a48a2e6986
Fix JSON stringification for fractional numbers ( #870 )
4 years ago
Jevan Chan
de7202dee8
Handle invalid Unicode code point in the string literals ( #853 )
4 years ago
Iban Eguia
0ca476c208
Improved MacOS cache handling and updated dependencies ( #871 )
4 years ago
dependabot[bot]
6834f7be25
Bump regex from 1.4.0 to 1.4.1 ( #866 )
4 years ago
Iban Eguia
282e367107
Updated cache in workflows ( #869 )
...
This should simplify the workflow configuration, and the cache should
now be more efficient. Hopefully will reduce build times a bit.
4 years ago
dependabot[bot]
a6dd080b0d
Bump css-loader from 4.3.0 to 5.0.0 ( #865 )
4 years ago
dependabot[bot]
fd34df513b
Bump webpack from 5.0.0 to 5.1.0 ( #864 )
4 years ago
dependabot[bot]
b2bea4f122
Bump git2 from 0.13.11 to 0.13.12 ( #867 )
4 years ago
dependabot[bot]
969ab40723
Bump bootstrap from 4.5.2 to 4.5.3 ( #863 )
4 years ago
Paul Lancaster
586a68970b
Async/Await parse ( #836 )
...
* Add async keyword
* Created AsyncFunctionDecl/Expr nodes
* AsyncFunctionDecl/Expr parser created (not impl)
* Add async to HoistableDeclaration
* Added expect_no_lineterminator, updated some cursor docs
* AsyncFunctionDecl parsing
* AsyncFunctionExpr parsing
* Await expression parsing
* Added some async function expr parsing tests
* Reposition declaration parsing ready to add tests
* Moved function decl tests
* Added some failing async func decl tests
* mdn/spec links@
* Function expression parsing into own folder
* Added function expression test
* Fixed async function decl parse
* Async/await run returns undefined rather than panic
* Clippy :( -> :)
* Missing docs
* Update boa/src/syntax/ast/node/declaration/async_function_decl/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/ast/node/declaration/async_function_expr/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/parser/statement/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/parser/statement/declaration/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Update boa/src/syntax/ast/node/await_expr/mod.rs
Co-authored-by: Halid Odat <halidodat@gmail.com>
* Revert "Update boa/src/syntax/parser/statement/declaration/mod.rs"
This reverts commit 46b2917530
.
* Revert "Update boa/src/syntax/parser/statement/mod.rs"
This reverts commit 4c0c1238ec
.
* Update boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs
Co-authored-by: Iban Eguia <razican@protonmail.ch>
* Update boa/src/syntax/parser/statement/declaration/hoistable/async_function_decl/mod.rs
Co-authored-by: Iban Eguia <razican@protonmail.ch>
* Addressed review comments
* Correct allow_yield parameters for async func
* Correct other usages of allow_yield
Co-authored-by: Halid Odat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
4 years ago
dependabot[bot]
907030b1a3
Bump serde_json from 1.0.58 to 1.0.59 ( #856 )
4 years ago
dependabot[bot]
66b65a8d1e
Bump webpack from 4.44.2 to 5.0.0 ( #855 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
3859480d0e
Bump structopt from 0.3.19 to 0.3.20 ( #857 )
...
Bumps [structopt](https://github.com/TeXitoi/structopt ) from 0.3.19 to 0.3.20.
- [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.19...v0.3.20 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
John Doneth
3047ed698f
Implement Object.getOwnPropertyDescriptor() and Object.getOwnPropertyDescriptors() ( #798 )
4 years ago
dependabot[bot]
36b7c31967
Bump regex from 1.3.9 to 1.4.0 ( #852 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.3.9 to 1.4.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.3.9...1.4.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]
22107b3d6b
Bump webpack-cli from 3.3.12 to 4.0.0 ( #850 )
4 years ago
dependabot[bot]
03ad2396ef
Bump file-loader from 6.1.0 to 6.1.1 ( #848 )
4 years ago
dependabot[bot]
226b5b55d8
Bump copy-webpack-plugin from 6.2.0 to 6.2.1 ( #849 )
4 years ago
dependabot[bot]
f7982536e9
Bump style-loader from 1.3.0 to 2.0.0 ( #851 )
4 years ago
neeldug
98deb58aae
style(boa): minor cleanup ( #838 )
4 years ago
croraf
210a9ec285
Allow UnaryExpression with prefix increment/decrement ( #844 )
4 years ago
neeldug
8aef55696f
fix(profiler): update profiler to match current measureme api ( #840 )
...
moves all OS profiling to use SerializationSink as the previous types
have been deprecated
Closes #839
4 years ago
croraf
0c92d37921
[parser] Minor refactor and rename ( #841 )
4 years ago
João Borges
fc8e5753e5
Fix: Set default-run to `boa` removing need for `--bin` ( #837 )
4 years ago
croraf
4e41b44f75
[exec Array] implement spread operator using iterator ( #811 )
4 years ago
Iban Eguia
e82dee1ae3
Using unstable sort for sorting keys on `to_json()` for GC objects ( #833 )
4 years ago
dlemel8
b26f8bcead
calling "new" on a primitive value throw a type error ( #825 )
...
* calling "new" on a primitive value throw a type error
* fix format
4 years ago
Jevan Chan
01dbf8ba4e
Fix tokenizing Unicode escape sequence in string literal ( #826 )
4 years ago
Iban Eguia
a3e7f1eace
Added a link to the Test262 results in the README ( #829 )
4 years ago
dependabot[bot]
89d2907884
Bump structopt from 0.3.18 to 0.3.19 ( #828 )
...
Bumps [structopt](https://github.com/TeXitoi/structopt ) from 0.3.18 to 0.3.19.
- [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.18...v0.3.19 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
croraf
456c2dee4e
[parser Expression] minor expression macro simplification ( #824 )
...
* [parser Expression] minor expression macro simplification
* Slightly improve the macro comment
* Minor reword
4 years ago
Halid Odat
470dbb4381
Refactor `PropertyDescriptor` ( #794 )
4 years ago
dependabot[bot]
ae76501709
Bump measureme from 0.8.0 to 9.0.0 ( #814 )
...
Bumps [measureme](https://github.com/rust-lang/measureme ) from 0.8.0 to 9.0.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.8.0...9.0.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
9d4c49c6dd
Fix 2 bugs that stopped test262 ( #812 )
...
* Fix: Add check for length in Array.prototype.map
* Fix: Make Array.prototype.reduceRight work for length 1
* Refactor: Cleanup Array.prototype.map to use usize for length
4 years ago
Halid Odat
a77ceb67fd
Feature `URIError` ( #806 )
...
- Add tests
4 years ago
neeldug
327d71bb98
Implement `regress` ( #774 )
...
Co-authored-by: RageKnify <rageknify@gmail.com>
4 years ago
João Borges
b027a76bea
Feature `Function.prototype.call` ( #805 )
4 years ago
Halid Odat
03f96327db
Feature `EvalError` ( #804 )
4 years ago
Halid Odat
39b4ead8f7
Feature `console` crate feature ( #800 )
...
* Put console object in a feature flag
* Add documentation for crate features
* fix typo
4 years ago
Theia Vogel
7a52e269e6
Fix lexer span panic with carriage return ( #799 )
...
Switch to treating bare carriage return as an OS9-style
newline, like v8.
4 years ago
David
fb1b8d5595
Add Object.defineProperties and handle props argument in Object.create ( #746 )
4 years ago
Halid Odat
ff25a8ad02
Make `Function.prototype` a function ( #802 )
4 years ago
Theia Vogel
d76e8bf108
Fix cyclic JSON.stringify / primitive conversion stack overflows ( #777 )
...
* Add tests for cyclic conversions
* Add another test for a non-cyclic scenario
* Refactor the existing RecursionLimiter type
We can use the existing RecursionLimiter type
used by GcObject's Debug impl for this purpose.
We just need to refactor it to allow both liveness
and visitation tracking, using a HashMap of ptrs
to states instead of a HashSet of ptrs.
* Fix `Value::to_json` to not overflow.
Use the newly refactored RecursionLimiter to
check for recursion, and limit it. Throw a TypeError
as mandated by the spec.
* Fix ordinary_to_primitive to not overflow
Use the new RecursionLimiter type to prevent
overflows from conversions in ordinary_to_primitive.
The spec doesn't say what to do here, so we follow
v8 / SpiderMonkey in returning a default value for
the type hint -- either 0. or "". More details in
the method documentation.
* Move ordinary_to_primitive to GcObject
* Move object_to_json to GcObject
* Add test for console.log
4 years ago
João Borges
dc82aa29dc
Fix Error constructors to return rather than throw ( #749 )
...
* Refactor: Error constructors to return instead of "throwing"
* Test: Add a test case for Error Objects in Object.prototype.toString
* Fix: Make Error.prototype.toString spec compliant
* Test: Add tests for Error.prototype.toString
4 years ago
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