Skip to content

Commit 2665ac4

Browse files
committed
fix: make null reader code suitable to use as return value code
1 parent 73f3110 commit 2665ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compile_text_parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function readCodeFor(type, charset, encodingExpr, config, options) {
153153
case Types.DOUBLE:
154154
return 'packet.parseLengthCodedFloat()';
155155
case Types.NULL:
156-
return 'null; packet.skip(1)';
156+
return 'packet.readLengthCodedNumber()';
157157
case Types.DECIMAL:
158158
case Types.NEWDECIMAL:
159159
if (config.decimalNumbers) {

0 commit comments

Comments
 (0)