From 56c0fdc1c429de0b826436b4c6a9ecf5de6b7019 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Thu, 31 Mar 2022 03:09:08 +0430 Subject: [PATCH] LibJS: Implement codegen for MemberExpression binding patterns --- Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp index 68a8d0dc646..32f5d50db0a 100644 --- a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp +++ b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp @@ -1058,10 +1058,7 @@ static Bytecode::CodeGenerationErrorOr generate_array_binding_pattern_byte return generate_binding_pattern_bytecode(generator, pattern, initialization_mode, target_reg); }, [&](NonnullRefPtr const& expr) -> Bytecode::CodeGenerationErrorOr { - return Bytecode::CodeGenerationError { - expr.ptr(), - "Unimplemented alias mode: MemberExpression"sv, - }; + return generator.emit_store_to_reference(*expr); }); };