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
tofpie
57d5679a58
Implement for..in ( #976 )
...
* Implement for..in
* Fix code styling issue
* Add break and continue with label
* Add break and continue for while and do-while
* Add unit tests
* Fix formatting
* Split node ForInOfLoop into ForInLoop and ForOfLoop
* Fix issues in ForInOfLoop node splitting
* Merge with master branch
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
tofpie
a77c879298
Fix spread in new and call expressions ( #1021 )
...
* Fix spread in new and call expressions
* Fix formatting
* Add unit tests
* Fix unit test
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
tofpie
d6a594757f
Implement support of Symbol.toPrimitive ( #1020 )
...
Co-authored-by: João Borges <rageknify@gmail.com>
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
Iban Eguia
9e9bf6531a
Upgraded dependencies, removed deprecated deps, updated the test262 submodule ( #1022 )
...
* Upgraded some dependencies, removed deprecated encoding deps, updated the test262 submodule
* Using previous syntax for yarn dependency
* Updated lockfile
4 years ago
tofpie
e11abfb3a2
Implement early errors for non-assignable nodes in assignment ( #1019 )
...
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
tofpie
0331f486a6
Implement logical assignment operators (&&= and ||=) ( #1018 )
...
* Implement logical assignment operators (&&= and ||=)
* Add unit tests
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
tofpie
4fb319dec6
Fix test suite name when it contains a dot ( #985 )
...
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago
dependabot[bot]
3b83767e58
Bump webpack-cli from 4.3.0 to 4.3.1 ( #1016 )
4 years ago
Halid Odat
4625c1ac29
Fix `Object.defineProperty()` ( #1005 )
...
- Fix panic if first argument is not supplied.
- Fix panic if second argument is not supplied.
- Fix bug when the object is not a object.
- Implemented `DefinePropertyOrThrow()`
4 years ago
tofpie
4cede758ed
Implement property accessors ( #987 )
...
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
4 years ago