Skip to content
Extraits de code Groupes Projets

Resolve "jsonparser.gs expects "val" to be never used (leads into numbers being replaced by an unrelated String)"

1 fichier
+ 4
1
Comparer les modifications
  • Côte à côte
  • En ligne
+ 4
1
@@ -251,7 +251,10 @@ Parser._parseNumber = function()
if "0123456789+-.eE".indexOf(c) == null then break
self._p = self._p + 1
end while
result = val(self.source[startPos : self._p])
// In original source, operation was
//result = val(self.source[startPos : self._p])
// However, it had the side-effect of using the "val" variable from the calling script!
result = self.source[startPos : self._p].val
return result
end function
Chargement en cours