n14little
69f48862ea
update pass through math methods ( #519 )
...
* update pass through math methods
* cargo fmt
4 years ago
HalidOdat
1ac5f205eb
Added arithmetic operation benchmark ( #516 )
4 years ago
Tyler Morten
1ffeb5cbe1
Implement Object.is() method issue #513 ( #515 )
4 years ago
n14little
299a431efe
JSON.stringify(undefined) should return undefined ( #512 )
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
n14little
8b431a4a19
434 json parse enumerability ( #504 )
4 years ago
croraf
c19ef724e3
Added undefined property to global scope ( #501 )
4 years ago
HalidOdat
e674da46e7
Fixed global objects initialization order ( #502 )
4 years ago
croraf
4ae939ac52
[ReferenceError] complete solution ( #488 )
4 years ago
neeldug
b43e92afa5
Added error propagation in Field access ( #500 )
4 years ago
Anirudh Konduru
64fca0c162
add Infinity gloabal property ( #480 ) ( #499 )
4 years ago
HalidOdat
df13272fc0
Object specialization ( #419 )
4 years ago
HalidOdat
0d52a40c53
Added `String`, `Boolean` and `Number` object benchmarks ( #494 )
4 years ago
Ryan Fickenscher
474252324e
Added `globalThis` property ( #495 )
...
* added builtin globalThis
* forgot to initialize globalThis in the builtin mod.rs file
* changed to to match naming conventions and fixed issue with suggested edits to globalThis' initial value
* updated the test for the property as suggested
4 years ago
Iban Eguia
d2939fffe3
Added string benchmarks, and updated dependencies ( #491 )
4 years ago
croraf
d042ddda3f
[parser] folder structure for VariableStatement and ExpressionStatement ( #489 )
4 years ago
Paul Lancaster
542b2cc005
Switch impl ( #451 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
4 years ago
croraf
c42fcf12a7
[FunctionDeclaration - execution] evaluate declaration into undefined not function ( #473 )
4 years ago
abhi
a7a5862458
Add benchmarks for array access, create and pop operations. ( #458 )
4 years ago
gvasquez11
3ff200ea11
updated issue #484 ( #485 )
4 years ago
Iban Eguia
a5ed8b7743
Small optimisation in som types that can be `Copy` ( #479 )
4 years ago
croraf
5a45ab532e
[NaN] handle NaN token as identifier ( #475 )
4 years ago
HalidOdat
496278c460
Fix compilation error
4 years ago
Richard
a987e76b9f
Add BigInt.asIntN() and BigInt.asUintN() functions ( #468 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
4 years ago
Colin Suckow
96dec21c02
Implement PreferredType enum ( #470 )
4 years ago
n14little
73d7a64bb4
add array prototype to arrays built in from_json ( #476 )
4 years ago
Iban Eguia
64dbf13afd
Implemented #427 , #429 and #430 , and upgraded dependencies ( #472 )
4 years ago
Paul Lancaster
634dfb7e80
Optimise type comparisons ( #441 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
4 years ago
croraf
ca80114c53
Fix and tests ( #469 )
4 years ago
Jason Williams
981404a518
Update pull_request.yml
4 years ago
Jason Williams
2736f7bc1b
Update pull_request.yml
4 years ago
Jason Williams
cf3251dd9a
references
4 years ago
Jason Williams
b888bae2c8
stick to cwd
4 years ago
Jason Williams
f8821bed93
adding package
4 years ago
Jason Williams
a76b8d489f
Add inputs to yml
4 years ago
Jason Williams
a4ae22ed60
Forgot to build criterion benchmarks
4 years ago
n14little
4763907fbf
Add proto object to from json ( #462 )
...
* remove From<JSONValue> for Value. Going from JSONValue to Value will soon need the interpreter
* pass interpreter to from_json
* move from_json to Value impl
* move to_json to Value impl alongside from_json
* add prototype to objects created from json
* consume the object and don't clone
* if it fits into i32, use integer; otherwise, use a rational
* WIP: throwing type error
* address most of the error cases
* cargo fmt
* address the rest of the error cases
* return null when JSONNumber::from_f64() returns None
* cargo fmt
* Update boa/src/builtins/value/mod.rs
* use JSONValue and use Result
* Update boa/src/builtins/json/mod.rs
Use and_then to avoid flatten
Co-authored-by: HalidOdat <halidodat@gmail.com>
Co-authored-by: Iban Eguia <razican@protonmail.ch>
Co-authored-by: HalidOdat <halidodat@gmail.com>
4 years ago
Jason Williams
081884e8d0
Use latest compare action
4 years ago
Paul Lancaster
a78934d424
parseInt, parseFloat implementation ( #459 )
...
* Added documentation to make_builtin_fn
* Simple impl of parseInt()
* Impl rest of parse_int
* Fixed handling of strings starting 0x
* Made NaN return as per js spec
* Rework to improve clarity
* parseFloat impl, added tests
* Addressed comments to PR
* Removed f64 import
* Fixed handling of too many/few arguments to parseInt/Float
Co-authored-by: HalidOdat <halidodat@gmail.com>
4 years ago
croraf
863abb3747
[TemplateLiteral] Basic lexer implementation ( #455 )
...
* Basic template literal lexer implementation
* Fix formatting
4 years ago
Iban Eguia
d970cf96b5
Execution benchmarks only take execution into account ( #431 )
4 years ago
dependabot[bot]
691c0d4f3b
Bump websocket-extensions from 0.1.3 to 0.1.4 ( #460 )
...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases )
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Paul Lancaster
84574b5da8
Divide the `run()` function ( #422 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
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
Jason Williams
32b0741cc8
Profiler using measureme ( #317 )
...
Profiler
4 years ago
HalidOdat
bb2b6f638c
Added `TypeError` implementation ( #442 )
5 years ago
n14little
4f2191ae1f
Has own property should call get own property ( #444 )
...
* object.hasOwnProperty should call getOwnProperty
* should work for properties with undefined and null values
* cargo fmt
5 years ago
Iban Eguia
145f0e3f03
Our benchmarks action now lives in boa-dev ( #438 )
5 years ago
Iban Eguia
d003ad3b6d
Fixed badges in README ( #437 )
5 years ago
HalidOdat
5e71718928
Specification compliant `ToString` (`to_string`) ( #425 )
5 years ago