object-input-stream 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ois-ast.ts +2 -2
package/package.json
CHANGED
package/src/ois-ast.ts
CHANGED
|
@@ -649,9 +649,9 @@ function cstToAstNode(node: CSTNode, children: ast.Node[]): ast.Node {
|
|
|
649
649
|
return {type: "object", objectType: "prev-object", span: node.span, value: {epoch: node.value, handle: ref.value}, children: [tc, ref]}
|
|
650
650
|
}
|
|
651
651
|
case "object/class": {
|
|
652
|
-
assert(children.length ===
|
|
652
|
+
assert(children.length === 2);
|
|
653
653
|
const tc = children[0];
|
|
654
|
-
const desc = children[
|
|
654
|
+
const desc = children[1];
|
|
655
655
|
assert(tc.type === "tc" && tc.value === ObjectInputStream.TC_CLASS);
|
|
656
656
|
assertDescNode(desc);
|
|
657
657
|
assert(node.handle !== undefined);
|