ladybird/Userland
Linus Groh 073071c634 LibJS: Fix Promise constructor reject function argument
If calling the executor function throws an exception, the return value
of `vm.call()` will be an empty value, which we then passed as an
argument to the reject function, which is incorrect - what it actually
needs is the exception value. This stems from a misunderstanding of the
spec I had at the time of implementing this - in their case, the
exception value is part of the completion record returned by Call().

This error was previously masked as we would use a fallback
(`value_or(js_undefined())` for the empty value argument, but that was
removed in 57f7e6e.

Fixes #8447.
2021-07-05 14:14:54 +01:00
..
Applets Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
Applications KeyboardSettings+Kernel: Setting to enable Num Lock on login 2021-07-05 06:19:59 +02:00
Demos Fire: Make the main widget a GUI::Frame 2021-07-05 02:38:31 +02:00
DevTools LibJS: Rewrite most of Object for spec compliance :^) 2021-07-04 22:07:36 +01:00
DynamicLoader DynamicLoader: Remove -fbuilding-libgcc hack 2021-07-04 00:35:35 +02:00
Games Games: Add Spider 2021-06-24 10:32:53 +02:00
Libraries LibJS: Fix Promise constructor reject function argument 2021-07-05 14:14:54 +01:00
Services KeyboardSettings+Kernel: Setting to enable Num Lock on login 2021-07-05 06:19:59 +02:00
Shell Everywhere: Prefer using "..."sv over StringView { "..." } 2021-07-04 14:24:03 +02:00
Utilities LibJS: Rewrite most of Object for spec compliance :^) 2021-07-04 22:07:36 +01:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00