Files
ladybird/Libraries/LibJS/Runtime
Matthew Olsson 6e05685ad4 LibJS: Fix return statements not working properly in loops
Previously, when a loop detected an unwind of type ScopeType::Function
(which means a return statement was executed inside of the loop), it
would just return undefined. This set the VM's last_value to undefined,
when it should have been the returned value. This patch makes all loop
statements return the appropriate value in the above case.
2020-10-08 23:23:55 +02:00
..
2020-10-04 17:03:33 +02:00
2020-10-04 17:03:33 +02:00
2020-07-13 15:07:29 +02:00
2020-10-02 18:01:27 +02:00