José Julián Espina
25705ef5a6
Refactor iterator APIs to be on parity with the latest spec ( #3962 )
...
* The Great Refactoring Of Iterators
* Update core/engine/src/builtins/promise/mod.rs
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com>
* Update core/engine/src/builtins/promise/mod.rs
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com>
---------
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com>
3 months ago
Hans Larsen
1c1d820e0e
Add clippy for denying print and eprints ( #3967 )
...
* Remove leftover eprintln from JsPromise::await_blocking
* Add clippy for denying print and eprints
And remove usage of println or allow them.
* Address comment
3 months ago
raskad
424896dbff
Refactor ast function types ( #3931 )
...
* Refactor AST function types
* fix lints
3 months ago
José Julián Espina
c22f39b026
Implement new spec changes for `AsyncGenerator` ( #3950 )
...
* Implement new spec changes for `AsyncGenerator`
* Add panic docs
3 months ago
José Julián Espina
4c76af8c67
Fix lints from rustc 1.80.0 ( #3936 )
4 months ago
raskad
e205b567be
Fix destructuring assignment evaluation order ( #3934 )
4 months ago
raskad
ab0854f76b
Refactor environment stack to remove some panics ( #3893 )
...
* Refactor environment stack to remove some panics
* Fix formatting and enum size difference
* fix typo
5 months ago
raskad
5bf2e92d2f
Fix HomeObject for private class methods ( #3897 )
5 months ago
raskad
961d7b4d82
Refactor call frame access to avoid panic checks ( #3888 )
5 months ago
raskad
eb439557ed
Remove some environment clones ( #3884 )
5 months ago
Haled Odat
2d91cd1e2c
Remove `FormalParameterList` from CodeBlock ( #3882 )
...
It is not used in strict mode and in non-strict mode it's only used to
construct the binding indices for the `MappedArguments`.
5 months ago
José Julián Espina
69ea2f52ed
Fix AsyncGenerator to correctly handle `return` inside `then` ( #3879 )
...
* Fix invalid assumptions for `AsyncGenerator`
* Patch AsyncGenerator functions
* Progress
* Progress 2
* Finish implementation
* cargo fmt
* cargo clippy
* Fix await resumptions
* Assert count in queue test
5 months ago
raskad
4419e6df04
Fix base objects in `with` statements ( #3870 )
6 months ago
Haled Odat
ced222fdba
Separate `JsString` into its own crate ( #3837 )
7 months ago
Haled Odat
5af3f7c079
Fix Rust 1.78.0 Clippy lints ( #3838 )
7 months ago
Haled Odat
3f6ee2276c
Implement Latin1 JsString ( #3450 )
7 months ago
Haled Odat
6ee208fc5d
Decouple `Context` from `ByteCompiler` ( #3829 )
...
* Decouple GlobalDeclarationInstantiation from Context
* Decouple EvalDeclarationInstantiation from Context
* Remove `Context` from `ByteCompiler`
* Fix typo
* Apply review
7 months ago
Hans Larsen
958045c9ac
Properly resolve paths in SimpleModuleLoader and add path to Referrer::Script ( #3791 )
...
* Properly resolve paths in SimpleModuleLoader and add path to Referrer::Script
* Add missing example
* Carry active runnable on frame push
* Duplicate the tests with proper paths for Windows/Unix
* Use the right root for absolute referrers
* ugh cargo fmt
* Limit doctest to unix
* Limit doctest to unix, for real
* cargo fmt
---------
Co-authored-by: jedel1043 <jedel0124@gmail.com>
8 months ago
Haled Odat
fb8e16b2d9
Cached `this` value ( #3771 )
8 months ago
Haled Odat
a1e36fc788
Optimize number to PropertyKey conversion ( #3769 )
...
In previous implementation when converting a number to PropertyKey, we
always converted it to string and only when the conversion to
PropertyKey::Index was not possible we returned that string.
8 months ago
Haled Odat
d3e539593f
Dense array storage variants for `i32` and `f64` ( #3760 )
...
* Implement `i32` dense arrays
* Implement `f64` dense arrays
* Implement debug object indexed elements type function
* Apply review
* Simplify `IndexedProperties::remove()`
8 months ago
raskad
861010ec80
Close for-of iterator when the loop body throws ( #3734 )
9 months ago
José Julián Espina
c94e10ddd6
Change `HostEnsureCanCompileStrings` to the new spec ( #3690 )
...
* Change `HostEnsureCanCompileStrings` to the new spec
* Fix test
9 months ago
Haled Odat
98dba8a1b9
Implement inline caching tests and cleanup ( #3513 )
10 months ago
raskad
6c5dfe0069
Fix invalid return value when closing an iterator ( #3567 )
11 months ago
raskad
6ac435ffea
Fix rust 1.75 lints ( #3540 )
11 months ago
Haled Odat
0b37ad6ea2
Move `PromiseCapability` to stack ( #3528 )
...
* Move `PromiseCapability` to stack
* Apply review
* Rename locals to register for consistency
11 months ago
Haled Odat
af9d3953cd
Refactor vm calling convention to allow locals ( #3496 )
...
* Refactor vm calling convention to allow locals
* Move async generator object to the stack
* Apply review and some clean-up
* Add todo for storing fp in CallFrame
* Rename ASYNC_GENERATOR_OBJECT_LOCAL_INDEX to ASYNC_GENERATOR_OBJECT_REGISTER_INDEX
12 months ago
Haled Odat
f923830031
Non recursive gc trace ( #3508 )
...
* Implement non-recursive GC tracing
* Mark `Trace::trace_non_roots()` as unsafe
* Apply review
12 months ago
José Julián Espina
47351efa53
Reestructure repo and CI improvements ( #3505 )
...
* Reestructure repo
* cargo update & fmt
* Fix CI
* Add newline
* Fix playground CI
* Fix CI
* Fix CI (for real this time)
* Fix CI (fr fr)
12 months ago