From 1501a719e4a0c34051e62e63a021f784750a4401 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 12 Jan 2021 14:34:06 +0100 Subject: [PATCH] Use differently-named Preserves canonicalString function --- packages/core/src/runtime/skeleton.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/runtime/skeleton.ts b/packages/core/src/runtime/skeleton.ts index d0181e4..b08eed3 100644 --- a/packages/core/src/runtime/skeleton.ts +++ b/packages/core/src/runtime/skeleton.ts @@ -17,7 +17,7 @@ //--------------------------------------------------------------------------- import { IdentitySet } from './idcoll.js'; -import { is, Value, Record, Set, Dictionary, _canonicalString } from 'preserves'; +import { is, Value, Record, Set, Dictionary, canonicalString } from 'preserves'; import { Bag, ChangeDescription } from './bag.js'; import { Discard, Capture, Observe } from './assertions.js'; @@ -282,7 +282,7 @@ class Handler { function classOf(v: any): string | null { if (Record.isRecord(v)) { const ci = v.getConstructorInfo(); - return _canonicalString(ci.label) + '/' + ci.arity; + return canonicalString(ci.label) + '/' + ci.arity; } else if (Array.isArray(v)) { return '' + v.length; } else {