summaryrefslogtreecommitdiff
path: root/deps/v8/src/conversions.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-30 11:34:27 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-11-30 11:37:43 -0800
commit7286b7952150672cded846e5eee5c533e72f3e9e (patch)
treeca2402b34014b3ca916836eaf33156585501c466 /deps/v8/src/conversions.cc
parent486c74e72bd015ac178f881806a1d36accdcecce (diff)
downloadnode-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.cc6
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(&current, end)) return JUNK_STRING_VALUE;
+ if (current == end) return JUNK_STRING_VALUE;
} else if (*current == '-') {
++current;
- if (!AdvanceToNonspace(&current, end)) return JUNK_STRING_VALUE;
+ if (current == end) return JUNK_STRING_VALUE;
sign = true;
}