mirror of
https://github.com/openharmony/arkcompiler_ets_frontend.git
synced 2026-08-25 12:00:14 -04:00
2749f2a06c
When a sendable class has class decorators, the alias variable generated by ts transformer was placed in regular lexical env instead of sendable env. This caused class methods to use ldlexvar instead of ldsendableclass for self-references, breaking sendable semantics across workers. Fix: bind ClassDefinition node to the alias declaration so that NeedSetInSendableEnv() returns true, placing the alias in the sendable env. Issue: https://gitcode.com/openharmony/arkcompiler_ets_frontend/issues/11644 Co-Authored-By: Agent Signed-off-by: huyunhui1 <huyunhui3@huawei.com> Change-Id: I12f5de1284db6e3a24e3882126b5550396f30e57