@muze-nl/od-jsontag 0.4.3 → 0.4.5

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 +2 -2
  2. package/src/parse.mjs +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muze-nl/od-jsontag",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "On Demand JSONTag: parse/serialize large datastructures on demand, useful for sharing data between threads",
5
5
  "type": "module",
6
6
  "author": "Auke van Slooten <auke@muze.nl>",
@@ -36,6 +36,6 @@
36
36
  "LICENSE"
37
37
  ],
38
38
  "dependencies": {
39
- "@muze-nl/jsontag": "^0.10.3"
39
+ "@muze-nl/jsontag": "^0.10.4"
40
40
  }
41
41
  }
package/src/parse.mjs CHANGED
@@ -517,9 +517,10 @@ export default class Parser extends JSONTag.Parser
517
517
  if (this.ch==='\\') {
518
518
  this.next()
519
519
  if (this.ch==='u') {
520
+ uffff = 0
520
521
  for (i=0; i<4; i++) {
521
522
  hex = parseInt(this.next(), 16)
522
- if (!this.isFinite(hex)) {
523
+ if (!isFinite(hex)) {
523
524
  break
524
525
  }
525
526
  uffff = uffff * 16 + hex