From 509aa1357608def11ad3b6dd970449a11c711d40 Mon Sep 17 00:00:00 2001 From: Tyler Butler Date: Fri, 5 May 2023 14:50:23 -0700 Subject: [PATCH] build: Tag asserts (#15481) Tag asserts in preparation for release. --- .../src/feature-libraries/editable-tree/editableField.ts | 4 ++-- .../runtime/test-runtime-utils/src/assertionShortCodesMap.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/experimental/dds/tree2/src/feature-libraries/editable-tree/editableField.ts b/experimental/dds/tree2/src/feature-libraries/editable-tree/editableField.ts index 35ac9a8a9926..0e35bf084f3e 100644 --- a/experimental/dds/tree2/src/feature-libraries/editable-tree/editableField.ts +++ b/experimental/dds/tree2/src/feature-libraries/editable-tree/editableField.ts @@ -202,7 +202,7 @@ export class FieldProxyTarget extends ProxyTarget implements Editab assert( this.fieldSchema.kind.identifier === sequence.identifier && destinationFieldKindIdentifier === sequence.identifier, - "Both source and destination fields must be sequence fields.", + 0x683 /* Both source and destination fields must be sequence fields. */, ); const destinationFieldProxy = @@ -211,7 +211,7 @@ export class FieldProxyTarget extends ProxyTarget implements Editab : this; assert( isFieldProxyTarget(destinationFieldProxy), - "destination field proxy must be a field proxy target", + 0x684 /* destination field proxy must be a field proxy target */, ); assertValidIndex(destinationIndex, destinationFieldProxy, true); diff --git a/packages/runtime/test-runtime-utils/src/assertionShortCodesMap.ts b/packages/runtime/test-runtime-utils/src/assertionShortCodesMap.ts index 66241ef5dd5b..1bac83490f23 100644 --- a/packages/runtime/test-runtime-utils/src/assertionShortCodesMap.ts +++ b/packages/runtime/test-runtime-utils/src/assertionShortCodesMap.ts @@ -1310,5 +1310,7 @@ export const shortCodeMap = { "0x67f": "Redo is not yet supported during transactions", "0x680": "new range must not already exist", "0x681": "count must be positive", - "0x682": "coupleInfo must have nodes to couple" + "0x682": "coupleInfo must have nodes to couple", + "0x683": "Both source and destination fields must be sequence fields.", + "0x684": "destination field proxy must be a field proxy target" };