diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-11-30 11:34:27 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-30 11:37:43 -0800 |
commit | 7286b7952150672cded846e5eee5c533e72f3e9e (patch) | |
tree | ca2402b34014b3ca916836eaf33156585501c466 /deps/v8/src/conversions.cc | |
parent | 486c74e72bd015ac178f881806a1d36accdcecce (diff) | |
download | node-7286b7952150672cded846e5eee5c533e72f3e9e.tar.gz |
Upgrade V8 to 2.5.9.1
Diffstat (limited to 'deps/v8/src/conversions.cc')
-rw-r--r-- | deps/v8/src/conversions.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/conversions.cc b/deps/v8/src/conversions.cc index 19fa7773a..a954d6cc6 100644 --- a/deps/v8/src/conversions.cc +++ b/deps/v8/src/conversions.cc @@ -448,12 +448,12 @@ static double InternalStringToDouble(Iterator current, bool sign = false; if (*current == '+') { - // Ignore leading sign; skip following spaces. + // Ignore leading sign. ++current; - if (!AdvanceToNonspace(¤t, end)) return JUNK_STRING_VALUE; + if (current == end) return JUNK_STRING_VALUE; } else if (*current == '-') { ++current; - if (!AdvanceToNonspace(¤t, end)) return JUNK_STRING_VALUE; + if (current == end) return JUNK_STRING_VALUE; sign = true; } |