HalidOdat
e674da46e7
Fixed global objects initialization order ( #502 )
5 years ago
croraf
4ae939ac52
[ReferenceError] complete solution ( #488 )
5 years ago
neeldug
b43e92afa5
Added error propagation in Field access ( #500 )
5 years ago
Anirudh Konduru
64fca0c162
add Infinity gloabal property ( #480 ) ( #499 )
5 years ago
HalidOdat
df13272fc0
Object specialization ( #419 )
5 years ago
HalidOdat
0d52a40c53
Added `String`, `Boolean` and `Number` object benchmarks ( #494 )
5 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
5 years ago
Iban Eguia
d2939fffe3
Added string benchmarks, and updated dependencies ( #491 )
5 years ago
croraf
d042ddda3f
[parser] folder structure for VariableStatement and ExpressionStatement ( #489 )
5 years ago
Paul Lancaster
542b2cc005
Switch impl ( #451 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
croraf
c42fcf12a7
[FunctionDeclaration - execution] evaluate declaration into undefined not function ( #473 )
5 years ago
abhi
a7a5862458
Add benchmarks for array access, create and pop operations. ( #458 )
5 years ago
gvasquez11
3ff200ea11
updated issue #484 ( #485 )
5 years ago
Iban Eguia
a5ed8b7743
Small optimisation in som types that can be `Copy` ( #479 )
5 years ago
croraf
5a45ab532e
[NaN] handle NaN token as identifier ( #475 )
5 years ago
HalidOdat
496278c460
Fix compilation error
5 years ago
Richard
a987e76b9f
Add BigInt.asIntN() and BigInt.asUintN() functions ( #468 )
...
Co-authored-by: HalidOdat <halidodat@gmail.com>
5 years ago
Colin Suckow
96dec21c02
Implement PreferredType enum ( #470 )
5 years ago
n14little
73d7a64bb4
add array prototype to arrays built in from_json ( #476 )
5 years ago
Iban Eguia
64dbf13afd
Implemented #427 , #429 and #430 , and upgraded dependencies ( #472 )
5 years ago
Paul Lancaster
634dfb7e80
Optimise type comparisons ( #441 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
croraf
ca80114c53
Fix and tests ( #469 )
5 years ago
Jason Williams
981404a518
Update pull_request.yml
5 years ago
Jason Williams
2736f7bc1b
Update pull_request.yml
5 years ago
Jason Williams
cf3251dd9a
references
5 years ago
Jason Williams
b888bae2c8
stick to cwd
5 years ago
Jason Williams
f8821bed93
adding package
5 years ago
Jason Williams
a76b8d489f
Add inputs to yml
5 years ago
Jason Williams
a4ae22ed60
Forgot to build criterion benchmarks
5 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>
5 years ago
Jason Williams
081884e8d0
Use latest compare action
5 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>
5 years ago
croraf
863abb3747
[TemplateLiteral] Basic lexer implementation ( #455 )
...
* Basic template literal lexer implementation
* Fix formatting
5 years ago
Iban Eguia
d970cf96b5
Execution benchmarks only take execution into account ( #431 )
5 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>
5 years ago
Paul Lancaster
84574b5da8
Divide the `run()` function ( #422 )
...
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 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.
5 years ago
Jason Williams
32b0741cc8
Profiler using measureme ( #317 )
...
Profiler
5 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
Jason Williams
073b8cee06
Update rust.yml
...
just use @v1
5 years ago
Paul Lancaster
b308f82302
Update to use a newer version of codecov github action ( #436 )
5 years ago
Jason Williams
aca55fd9aa
Update README.md
...
remove testing
5 years ago
Jason Williams
640b76efaa
Update README.md
5 years ago
Paul Lancaster
ce0d801685
Add code coverage: tarpaulin / codecov ( #411 )
...
* Adding tarpaulin code coverage step
Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
abhi
8255c3a83a
Add support for the reviver function to JSON.parse ( #410 )
5 years ago
Pedro Paulo
87aea64c1f
Consistency at README.md ( #424 )
...
Tries to make the README.md file more consistent. In some places the lines ended with a ".", while in others it did not. The licenses at the ended were missing some links and some sessions, such as [Benchmark] did not have any text besides the main link, among other things.
5 years ago