LibJS: Implement codegen for MemberExpression binding patterns

This commit is contained in:
Ali Mohammad Pur 2022-03-31 03:09:08 +04:30 committed by Andreas Kling
parent 007ffcd763
commit 56c0fdc1c4
Notes: sideshowbarker 2024-07-17 16:24:06 +09:00

View file

@ -1058,10 +1058,7 @@ static Bytecode::CodeGenerationErrorOr<void> generate_array_binding_pattern_byte
return generate_binding_pattern_bytecode(generator, pattern, initialization_mode, target_reg);
},
[&](NonnullRefPtr<MemberExpression> const& expr) -> Bytecode::CodeGenerationErrorOr<void> {
return Bytecode::CodeGenerationError {
expr.ptr(),
"Unimplemented alias mode: MemberExpression"sv,
};
return generator.emit_store_to_reference(*expr);
});
};