From 4adb83e033946e0c5b6198c86482eaed3acc3fe0 Mon Sep 17 00:00:00 2001 From: patrick Date: Wed, 12 Jun 2024 11:15:00 +0200 Subject: [PATCH] on meta --- packages/@glimmer/validator/lib/meta.ts | 8 ++------ packages/@glimmer/validator/lib/validators.ts | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/@glimmer/validator/lib/meta.ts b/packages/@glimmer/validator/lib/meta.ts index fa35854611..3b1a997cf1 100644 --- a/packages/@glimmer/validator/lib/meta.ts +++ b/packages/@glimmer/validator/lib/meta.ts @@ -64,17 +64,13 @@ export function tagFor( if (tag === undefined) { tag = createUpdatableTag(); + tag.meta = { propertyKey: key, obj: object }; tags.set(key, tag); - tag.propertyKey = key; - tag.object = obj; } return tag; } export function infoForTag(tag: Tag) { - return { - object: tag.object, - propertyKey: tag.propertyKey, - }; + return tag.meta; } diff --git a/packages/@glimmer/validator/lib/validators.ts b/packages/@glimmer/validator/lib/validators.ts index 9ad3790e69..df55aefd51 100644 --- a/packages/@glimmer/validator/lib/validators.ts +++ b/packages/@glimmer/validator/lib/validators.ts @@ -112,9 +112,7 @@ export class MonomorphicTagImpl { private isUpdating = false; public subtag: Tag | Tag[] | null = null; private subtagBufferCache: Revision | null = null; - - public propertyKey: string | null = null; - public object: any = null; + public meta: any = null; [TYPE]: T;