[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:15:29 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 1263f239b7f102118b050e37f216a7054f44c54c
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Dec 2 16:04:55 2003 +0000
Reviewed by Maciej.
- fixed 3493799: JavaScript string.replace expands $ if it's the last character in replacement string
* kjs/ustring.cpp: (KJS::UString::toDouble): Fix backwards handling of the "tolerant" boolean.
This indirectly caused the string.replace bug.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 3d51dcb..3b7dd51 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,12 @@
+2003-12-01 Darin Adler <darin at apple.com>
+
+ Reviewed by Maciej.
+
+ - fixed 3493799: JavaScript string.replace expands $ if it's the last character in replacement string
+
+ * kjs/ustring.cpp: (KJS::UString::toDouble): Fix backwards handling of the "tolerant" boolean.
+ This indirectly caused the string.replace bug.
+
2003-12-02 Maciej Stachowiak <mjs at apple.com>
Merged patches from Harri Porten and David Faure to fix:
diff --git a/JavaScriptCore/kjs/ustring.cpp b/JavaScriptCore/kjs/ustring.cpp
index 8152053..02e3d80 100644
--- a/JavaScriptCore/kjs/ustring.cpp
+++ b/JavaScriptCore/kjs/ustring.cpp
@@ -632,7 +632,7 @@ double UString::toDouble( bool tolerant ) const
// empty string ?
if (*c == '\0')
- return tolerant ? NaN : 0.0;
+ return tolerant ? 0.0 : NaN;
// hex number ?
if (*c == '0' && (*(c+1) == 'x' || *(c+1) == 'X')) {
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list