Jevan Chan
db68c125d4
Fix out-of-range panics of Date ( #1075 )
...
* Add overflow check when fixing year, month, and day
* Add timeclip
* Add timeclip to `Date.UTC()`
* Minor fix
* Fix comment
* Add more range check
* Add timeclip to all date creation
* Remove redundant overflow check
* Fix clippy
4 years ago
Jevan Chan
00fc5e22bc
Fix lexing escapes in string literal and minor refactor ( #1079 )
...
* Refactor StringLiteral
* Fix octal escape in string literal
* Add tests
* Fix zero escape
* Fix zero escape lookahead
* Rename variables
* Rename helper functions
* Refactor match arms
* Fix escape line terminator sequence
* Fix single character escape
* Fix escape followed by unicode char
* Add NonOctalDecimalEscapeSequence
* Fix comment
* Refactor
* Modify error message
* Add tests
* Rename tests
* Add test for error
* Add comments for unsafe bytes to str
* Update boa/src/syntax/lexer/string.rs
Co-authored-by: tofpie <75836434+tofpie@users.noreply.github.com>
* Minor refactor
* Remove unsafe bytes to str
* Fix panic when reading invalid utf-8 chars
Co-authored-by: tofpie <75836434+tofpie@users.noreply.github.com>
4 years ago
dependabot[bot]
d15f55ea43
Bump webpack from 5.15.0 to 5.16.0 ( #1086 )
4 years ago
João Borges
d14e102626
Add primitive promotion for method calls on GetField ( #1085 )
4 years ago
dependabot[bot]
3cfa7b6601
Bump webpack-cli from 4.3.1 to 4.4.0 ( #1087 )
4 years ago
dependabot[bot]
99082cae04
Bump bootstrap from 4.5.3 to 4.6.0 ( #1088 )
4 years ago
dependabot[bot]
af23570e42
Bump serde from 1.0.119 to 1.0.120 ( #1089 )
4 years ago
dependabot[bot]
777c3659ae
Bump getrandom from 0.2.1 to 0.2.2 ( #1090 )
4 years ago
jasonwilliams
444a789b3b
add version so boa can be published
4 years ago
joshwd36
7b75874df1
Fix panics from multiple borrows of Map. ( #1077 )
4 years ago
dependabot[bot]
b34bb37528
Bump monaco-editor from 0.21.2 to 0.21.3 ( #1082 )
4 years ago
dependabot[bot]
07d5219dd8
Bump webpack from 5.14.0 to 5.15.0 ( #1080 )
4 years ago
João Borges
5a5061ca4f
Refactor: Change Realm::global_object field from Value to GcObject ( #1067 )
...
* Refactor: Change Realm::global_object field from Value to GcObject
* Style: Add allow atributte to avoid clippy false positive
4 years ago
tofpie
1098b41d09
Fix get/set as short method name in object ( #1072 )
...
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
jasonwilliams
e0f226a72b
switch off patch coverage
4 years ago
Vishal Sodani
b28f101316
Fixed spelling ( #1073 )
...
* Fixed spelling
* Update boa/examples/classes.rs
* Apply suggestions from code review
* Update classes.rs
Co-authored-by: tofpie <75836434+tofpie@users.noreply.github.com>
4 years ago
tofpie
797092c95c
Fix attribute configurable of the length property of arguments ( #1071 )
...
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
Jason Williams
aa03a7dbe2
Update CHANGELOG.md
4 years ago
Jason Williams
9160b89edf
Changelog v0.11 ( #1052 )
...
v0.11
Co-authored-by: João Borges <rageknify@gmail.com>
Co-authored-by: Iban Eguia <iban.eguia@cern.ch>
4 years ago
dependabot[bot]
f259ba44bf
Bump webpack-dev-server from 3.11.1 to 3.11.2 ( #1068 )
4 years ago
dependabot[bot]
c95ec59fec
Bump webpack from 5.13.0 to 5.14.0 ( #1069 )
4 years ago
dependabot[bot]
090816e467
Bump rand from 0.8.1 to 0.8.2 ( #1070 )
4 years ago
tofpie
f62a77d3fa
Implement template literals and tagged templates ( #997 )
...
* Implement template literals and tagged templates
* Merge master into for-in
* Implement suggestions from review
* Implement suggestions from review
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
tofpie
a7dd470cc2
Add newTarget to construct ( #1045 )
...
* Add newTarget to construct
* Fix construct for self-mutating function
* Implement suggestions from review
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
dependabot[bot]
7dffd44255
Bump serde from 1.0.118 to 1.0.119 ( #1061 )
4 years ago
dependabot[bot]
214d8d9fdf
Bump webpack from 5.12.3 to 5.13.0 ( #1060 )
4 years ago
dependabot[bot]
abd893ce19
Bump regex from 1.4.2 to 1.4.3 ( #1057 )
4 years ago
dependabot[bot]
5876dc3f96
Bump webpack from 5.11.1 to 5.12.3 ( #1056 )
4 years ago
Jevan Chan
f66a0999e7
Improve Unicode support for identifier names ( #1003 )
...
* Add identifier name unicode checkers
* Improve identifier name checkers
* cargo fmt
* Further improve identifier name checkers
* Rename modules and add comments
* Fix clippy
* Add unit tests
* Move unicode table to separate crate and add script
* Rename trait
* Minor fix
* Sort code points before writing to file
* Remove unused dependency
* Add table.rs doc comment
* Add trait level comment
* Add comments to script
* Update comments
* Update comments
* Add test to check Unicode version of dependency
* Add README.md and link to CONTRIBUTING.md
* Fix prettier
4 years ago
Paul Lancaster
e2f9ecd593
Arrow parse ( #1051 )
...
* Tests showing arrow func assignment parsing
* Peek ahead 3 for arrow func
* More tests (with correct syntax), removed debug statements
4 years ago
Iban Eguia
c3ba744e9d
Removed a couple of extra panics ( #1050 )
4 years ago
Annika
c083c85da6
Support overriding the `arguments` variable ( #1049 )
...
This eliminates a number of panics in the Test262 suite.
4 years ago
Iban Eguia
624d03d2a2
Fixed a bunch of test262 panics ( #817 ) ( #1046 )
...
* Fixed a bunch of test262 panics (#817 )
This also implements a spec-compliant `parseInt()` function.
* Reverted a test
* Addressed long comments from review
4 years ago
Iban Eguia
ba84f526de
Added syntax highlighting for numbers, identifiers and template literals ( #1047 )
...
* Added syntax highlighting for numbers, identifiers and template literals
* Update boa_cli/src/helper.rs
Co-authored-by: Jevan Chan <jevan.cnchan@gmail.com>
* Update boa_cli/src/helper.rs
Co-authored-by: Jevan Chan <jevan.cnchan@gmail.com>
Co-authored-by: Jevan Chan <jevan.cnchan@gmail.com>
4 years ago
54k1
d9916fcc9c
Modify environment binding behaviour of function ( #1010 )
...
* Modify environment binding behaviour of function
* Add basic test
4 years ago
Annika
89419e202f
VM: Implement variable declaration (var, const, and let) ( #1030 )
...
* VM: Implement LetDeclList and the `let` keyword
* Support var and const
* Split defining and initializing into separate instructions
* DefLet doesn't need the value
* InitLexical initializes value if set
* Code review
* Fix rustfmt
* Add documentation
* InitLexical fix
Co-authored-by: jasonwilliams <jase.williams@gmail.com>
4 years ago
tofpie
1a7e832791
Add receiver parameter to object internal methods ( #1042 )
...
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
Jevan Chan
e8bc79c26a
Implement String.prototype.split ( #1026 )
4 years ago
dependabot[bot]
8140b9346d
Bump serde_yaml from 0.8.14 to 0.8.15 ( #1043 )
4 years ago
dependabot[bot]
0e41be1144
Bump rand from 0.8.0 to 0.8.1 ( #1039 )
4 years ago
dependabot[bot]
ceca316ca5
Bump getrandom from 0.2.0 to 0.2.1 ( #1037 )
4 years ago
dependabot[bot]
34f3221ea8
Bump html-webpack-plugin from 4.5.0 to 4.5.1 ( #1036 )
4 years ago
Jason Williams
ce78947fce
update launch.json ( #1034 )
...
- cpp version is no longer needed
- add VM launch config using cargo args
4 years ago
Iban Eguia
5e78ff83f5
Fixed some panics ( #1029 )
...
* Fixed some panics, Object.setPrototypeOf and Object.getPrototypeOf are almost spec compliant
* Small documentation fix
* Fixed clippy lint
* Added `RequireObjectCoercible`
* Fixed compilation error
* cargo fmt
4 years ago
Iban Eguia
553ea529f3
Fixed some extra regex panics ( #1031 )
4 years ago
Jason Williams
98945c8cb3
wrap the regress panic for now ( #1027 )
4 years ago
Jason Williams
1052ccdd0c
Bytecode Interpreter (new branch) ( #860 )
...
Nodes implement CodeGen which generates instructions onto a stack held in Context.
The VM will interpret the instructions from Context.
There are some issues:
- Only basic instructions are added, but I'm working off https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Internals/Bytecode for now it should be easy to add more in.
- The Stack is a Vec, this isn't ideal (we may be able to live with it for now) but the stack should really be a fixed sized array. This isn't possible because Value can't be copied in there as it holds Rc and Gc values. Can we have fixed-sized Values that hold a pointer? Something like the "stackvec" crate should help
- put all VM related code behind "vm" feature flag
Co-authored-by: Jason Williams <jwilliams720@bloomberg.net>
Co-authored-by: Halid Odat <halidodat@gmail.com>
4 years ago
tofpie
14ef50ce47
Fix delete when the property is not configurable ( #1024 )
...
* Fix delete when the property is not configurable
* Implement suggestion
Co-authored-by: Halid Odat <halidodat@gmail.com>
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
Co-authored-by: Halid Odat <halidodat@gmail.com>
4 years ago
Annika
90a8587ff5
Don't panic when function parameters share names ( #1017 )
...
* Don't panic when function parameters share names
* rustfmt
4 years ago
tofpie
e0a135e46a
Fix attributes on properties of functions and constructors ( #1023 )
...
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago