Skip to content

Commit 9c61bf2

Browse files
committed
progress: 38 failing tests
1 parent 0560a0c commit 9c61bf2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/@ember/-internals/metal/lib/decorator.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,19 @@ function computedDecorator2023(args: Parameters<Decorator>, desc: ComputedDescri
201201
);
202202
});
203203
break;
204+
case 'setter':
205+
dec.context.addInitializer(function (this: any) {
206+
Object.defineProperty(
207+
this,
208+
dec.context.name,
209+
makeDescriptor(desc, 2, this, dec.context.name as string, {
210+
set: dec.value as any,
211+
})
212+
);
213+
});
214+
break;
204215
default:
205-
console.log(
216+
throw new Error(
206217
`unimplemented: computedDecorator on ${dec.kind} ${dec.context.name?.toString()}`
207218
);
208219
}

0 commit comments

Comments
 (0)