Skip to content

Commit c3651ce

Browse files
AleksanderBodurrimatsko
authored andcommitted
docs(core): fix typo in decorators.ts relating to the use of Object.defineProperty. (angular#37369)
Previously there was a typo in a comment within the PropDecorator function relating to and justifying the use of Object.defineProperty. This PR clears up the wording that comment PR Close angular#37369
1 parent 3b52f70 commit c3651ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/util/decorators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ export function makePropDecorator(
153153

154154
function PropDecorator(target: any, name: string) {
155155
const constructor = target.constructor;
156-
// Use of Object.defineProperty is important since it creates non-enumerable property which
157-
// prevents the property is copied during subclassing.
156+
// Use of Object.defineProperty is important because it creates a non-enumerable property
157+
// which prevents the property from being copied during subclassing.
158158
const meta = constructor.hasOwnProperty(PROP_METADATA) ?
159159
(constructor as any)[PROP_METADATA] :
160160
Object.defineProperty(constructor, PROP_METADATA, {value: {}})[PROP_METADATA];

0 commit comments

Comments
 (0)