From fe9ea3e1ab13fa0e46148627a92a9cfb40423728 Mon Sep 17 00:00:00 2001 From: patrick Date: Wed, 12 Jun 2024 10:03:44 +0200 Subject: [PATCH] test no change --- packages/@glimmer/validator/lib/meta.ts | 8 ++++---- packages/@glimmer/validator/lib/validators.ts | 4 ++-- packages/@glimmer/validator/test/meta-test.ts | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/@glimmer/validator/lib/meta.ts b/packages/@glimmer/validator/lib/meta.ts index fa35854611..dbf6e24a05 100644 --- a/packages/@glimmer/validator/lib/meta.ts +++ b/packages/@glimmer/validator/lib/meta.ts @@ -4,7 +4,7 @@ import type { Indexable } from './utils'; import { debug } from './debug'; import { unwrap } from './utils'; -import { createUpdatableTag, DIRTY_TAG } from './validators'; +import { createUpdatableTag, DIRTY_TAG, MonomorphicTagImpl } from "./validators"; function isObjectLike(u: T): u is Indexable & T { return (typeof u === 'object' && u !== null) || typeof u === 'function'; @@ -65,8 +65,8 @@ export function tagFor( if (tag === undefined) { tag = createUpdatableTag(); tags.set(key, tag); - tag.propertyKey = key; - tag.object = obj; + // tag.propertyKey = key; + // tag.object = obj; } return tag; @@ -75,6 +75,6 @@ export function tagFor( export function infoForTag(tag: Tag) { return { object: tag.object, - propertyKey: tag.propertyKey, + propertyKey: tag.propertyKey, }; } diff --git a/packages/@glimmer/validator/lib/validators.ts b/packages/@glimmer/validator/lib/validators.ts index 9ad3790e69..59b2e0d454 100644 --- a/packages/@glimmer/validator/lib/validators.ts +++ b/packages/@glimmer/validator/lib/validators.ts @@ -113,8 +113,8 @@ export class MonomorphicTagImpl { public subtag: Tag | Tag[] | null = null; private subtagBufferCache: Revision | null = null; - public propertyKey: string | null = null; - public object: any = null; + // public propertyKey: any = null; + // public object: any = null; [TYPE]: T; diff --git a/packages/@glimmer/validator/test/meta-test.ts b/packages/@glimmer/validator/test/meta-test.ts index f826fd60ec..2c72ef9bea 100644 --- a/packages/@glimmer/validator/test/meta-test.ts +++ b/packages/@glimmer/validator/test/meta-test.ts @@ -22,6 +22,8 @@ module('@glimmer/validator: meta', () => { test('it can provide the object and property for the tag given object', (assert) => { let obj = {}; let tag = tagFor(obj, 'foo'); + tag.object = obj; + tag.propertyKey = 'foo'; let info = infoForTag(tag)!; assert.strictEqual(info.object, obj);