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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ois-ast.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "object-input-stream",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "ObjectInputStream for JavaScript. Read Java serialized objects in Node and the browser.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.js",
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 === 1);
652
+ assert(children.length === 2);
653
653
  const tc = children[0];
654
- const desc = children[0];
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);