| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
writeLong(Long.fromValue(7))
|
@lishengguo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fengmk2, @gxcsoccer and @xusiyuan841028 to be potential reviewers. |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
======================================
Coverage 96.1% 96.1%
======================================
Files 7 7
Lines 1079 1079
Branches 204 204
======================================
Hits 1037 1037
Misses 42 42
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
any test cases? |
Sorry, something went wrong.
|
add test case : Long.fromNumber(0) |
Sorry, something went wrong.
| */ | ||
| proto.writeLong = function (val) { | ||
| if (typeof val !== 'number' && utility.isSafeNumberString(val)) { | ||
| if (typeof val !== 'number' && utility.isSafeNumberString(val + '')) { |
There was a problem hiding this comment.
detect val is not equal string first.
if (typeof val !== 'number') {
if (typeof val !== 'string') {
val = val + '';
}
if (utility.isSafeNumberString(val)) {
val = Number(val);
}
}
Sorry, something went wrong.
|
Please rebase from master branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
writeLong(Long.fromValue(7))