@muze-nl/od-jsontag 0.4.4 → 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.
- package/package.json +1 -1
- 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
|
+
"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>",
|
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 (!
|
|
523
|
+
if (!isFinite(hex)) {
|
|
523
524
|
break
|
|
524
525
|
}
|
|
525
526
|
uffff = uffff * 16 + hex
|