Iban Eguia
8fde98afa9
Add ECMAScript test suite (test262) ( #567 )
4 years ago
Paul Lancaster
cb93472b4a
New lexer ( #559 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
Co-authored-by: Paul Lancaster <paul@lancasterzone.com>
Co-authored-by: neeldug <5161147+neeldug@users.noreply.github.com>
4 years ago
Jarred Holman
c7531afd10
Add missing ops to exec module ( #635 )
...
* Node::ConditionalOp
* Node::Continue
4 years ago
Paul Lancaster
8ade420692
Test + fmt fix ( #646 )
...
* Test + fmt fix
* Use u64 instead of u128 in test
4 years ago
Jonathan Dickinson
13f73749c8
Fix undefined constant expression evaluation ( #645 )
4 years ago
HalidOdat
b42dd4cd8b
Index `PropertyKey`, `Object` iterators and symbol support ( #603 )
...
* Index `PropertyKey`, `Object` iterators and `Symbol` indexing support.
* PR feedback
4 years ago
54k1
7a51530dcd
Fix 532, 533, 641 ( #642 )
4 years ago
54k1
2d1dabb554
Change default return type from null to undefined ( #643 )
...
* Change default return type from null to undefined
* Change default return value of block
* Add link to spec
* Add tests
4 years ago
HalidOdat
6e7b362424
Changed to Value::to_*int32 => Value::to_*32 ( #638 )
4 years ago
HalidOdat
c5b708b2ef
Moved value operations from `Interpreter` to `Value` ( #625 )
4 years ago
João Borges
667a820dee
Introduce PropertyKey for field acces, fix #172 (quotes around displayed strings) ( #373 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
4 years ago
KashParty
cce0626f17
Added tests
4 years ago
HalidOdat
d8eb7caefd
Extracted `__proto__` from internal slots ( #580 )
4 years ago
joshwd36
df80ee005b
Ensure tests test error type ( #563 )
4 years ago
joshwd36
ffe8b5f337
Throw a type error when a non-object is called ( #561 )
4 years ago
HalidOdat
357c7d07f7
Fix all `Value` operations and add unsigned shift right ( #520 )
4 years ago
Jason Williams
c4a652a517
Fix sending `this` value to function environments ( #526 )
4 years ago
Ryan Fickenscher
24418e7520
TypeError when to_object is passed null or undefined ( #518 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
4 years ago
HalidOdat
a7cffe3c7c
Fixed function call with unspecified arguments ( #506 )
...
Calling a function with less amount of arguments than
the function declaration parameters would `panic`.
4 years ago
croraf
c19ef724e3
Added undefined property to global scope ( #501 )
4 years ago
croraf
4ae939ac52
[ReferenceError] complete solution ( #488 )
4 years ago
croraf
c42fcf12a7
[FunctionDeclaration - execution] evaluate declaration into undefined not function ( #473 )
4 years ago
Richard
a987e76b9f
Add BigInt.asIntN() and BigInt.asUintN() functions ( #468 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
4 years ago
croraf
ca80114c53
Fix and tests ( #469 )
4 years ago
HalidOdat
d847ff826b
Specification compliant `ToBigInt` (`to_bigint`) ( #450 )
...
- Merged Ast `BigInt` to Builtin `BigInt`.
- Split `BigInt` logic to separate files.
- Added `builtins/bigint/operations.rs` for `BigInt` operations.
- Added `builtins/bigint/conversions.rs` for `BigInt` conversions.
- Added` builtins/bigint/equality.rs` for `BigInt` equality checking.
- Added tests.
4 years ago
HalidOdat
bb2b6f638c
Added `TypeError` implementation ( #442 )
4 years ago
Iban Eguia
4beadfc9ad
Execution and Node modularization ( #392 )
4 years ago
Javed Nissar
29abfd6147
Resolved #359 ( #396 )
...
Removed Node::TypeOf, implemented UnaryOp::TypeOf, and added tests
4 years ago
Jason Williams
63f37a2858
implement "this" ( #320 )
...
* implement this
* remove construct/call from Object instead set func
* get_this_binding() was wrong, fixed
* BindingStatus is now properly set
* `this` now works on dynamic functions
* Migrates all builtins to use a single constructor/call fucntion to match the spec
* Ensure new object has an existing prototype
* create_function utility
* needing to clone before passing through
4 years ago
Alexander Kryvomaz
9cd9a39aa6
Implement unary void, delete operators ( #388 )
4 years ago
Iban Eguia
143434f643
Added `BindingIdentifier` parsing. ( #389 )
4 years ago
Iban Eguia
9c9c4638e0
Implemented function expressions ( #382 )
4 years ago
Alexander Kryvomaz
f6e0fdb197
Implement unary increment and decrement ( #380 )
4 years ago
HalidOdat
35f5f0b5b3
Code cleanup ( #372 )
4 years ago
Alexander Kryvomaz
75cf44a08a
Implement for loop ( #374 )
...
* implement for loop execution
* for loop benchmark
* add more for loop tests
* Update boa/src/exec/tests.rs
Co-authored-by: Iban Eguia <razican@protonmail.ch>
4 years ago
Brian Gavin
55ef44ce13
feat(boa): in operator ( #350 )
4 years ago
Iban Eguia
bc63b28b6b
Modularized parser ( #304 )
4 years ago
HalidOdat
505df912ad
Fixed assign operator precedence ( #311 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
4 years ago
Radek Krahl
9c638cc14f
Implement do..while loop ( #306 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
4 years ago
Iban Eguia
38db4dc316
Added a test for #208 ( #303 )
4 years ago
Iban Eguia
86052d6d75
Moved test modules to their own files ( #258 )
4 years ago