mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Implement bytecode generation for For-In/Of statements
This also implements the rather interesting behaviour that #12772 relies on, so this fixes that bug in BC mode (the AST interp remains affected).
This commit is contained in:
committed by
Andreas Kling
parent
83afc1154c
commit
8f7021faf7
Notes:
sideshowbarker
2024-07-17 17:07:51 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/8f7021faf7 Pull-request: https://github.com/SerenityOS/serenity/pull/13116 Reviewed-by: https://github.com/Lubrsi
@@ -194,7 +194,10 @@ CodeGenerationErrorOr<void> Generator::emit_store_to_reference(JS::ASTNode const
|
||||
return {};
|
||||
}
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
return CodeGenerationError {
|
||||
&node,
|
||||
"Unimplemented/invalid node used a reference"sv
|
||||
};
|
||||
}
|
||||
|
||||
String CodeGenerationError::to_string()
|
||||
|
||||
Reference in New Issue
Block a user