Skip to content

Commit 2be25cd

Browse files
authored
Merge pull request #188 from legraphista/1.0-integer-packer-fix
Fix: checking if a parameter is integer in packer by using Integer.isInteger
2 parents 5e5008b + 97912b4 commit 2be25cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v1/internal/packstream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Packer {
9797
return () => this.packFloat(x);
9898
} else if (typeof(x) == "string") {
9999
return () => this.packString(x, onError);
100-
} else if (x instanceof Integer) {
100+
} else if (Integer.isInteger(x)) {
101101
return () => this.packInteger( x );
102102
} else if (x instanceof Array) {
103103
return () => {

0 commit comments

Comments
 (0)