mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-29 07:04:09 +08:00
Update the normalization unit test for the hoisted receiver
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
756a93a8f2
commit
604f647e30
@@ -458,9 +458,11 @@ test("normalizes base capsules before dispatching each derived member once", ()
|
||||
});
|
||||
expect(dispatch.body.filter((statement) => statement.kind === "if")).toHaveLength(2);
|
||||
const normalize = liftedFns.find((helper) => helper.name === "%dyn.class.normalize")!;
|
||||
// The capsule branch unboxes its receiver once, then tests each subclass.
|
||||
expect(normalize.body[0]).toMatchObject({
|
||||
kind: "if",
|
||||
then: [
|
||||
{ kind: "varDecl", init: { kind: "dynCheck", type: { kind: "object", className: "Base" } } },
|
||||
{
|
||||
kind: "if",
|
||||
then: [
|
||||
|
||||
Reference in New Issue
Block a user