mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 23:13:34 +08:00
fix(javascript): retain initialized class self binding at body reads
This commit is contained in:
@@ -211,3 +211,8 @@ it("owns a class declaration's self reference separately from its outer variable
|
||||
)?.resolution,
|
||||
).toBe("exact");
|
||||
});
|
||||
|
||||
it("does not initialize a class self name during computed-key evaluation", () => {
|
||||
const ir = analyze(`class Service { [Service()]() {} }`, "fixture.mjs");
|
||||
expect(ir.callSites[0]?.resolution).not.toBe("exact");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user