Skip to content

Commit 919196b

Browse files
committed
feat(json-crdt): 🎸 throw on uknown op
1 parent 9b6112d commit 919196b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/json-crdt/json-patch/JsonPatchDraft.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class JsonPatchDraft {
2727
case 'test': this.applyTest(op); break;
2828
case 'str_ins': this.applyStrIns(op); break;
2929
case 'str_del': this.applyStrDel(op); break;
30+
default: throw new Error('UNKNOWN_OP');
3031
}
3132
}
3233

0 commit comments

Comments
 (0)