fixed literal-to-non-literal zero-value comparison bug

pull/3/merge
jmoenig 2013-12-05 09:24:35 +01:00
rodzic 5716582ea2
commit 6fd731cd6e
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -2026,3 +2026,7 @@ ______
* Lists: harmonize equality testing and List CONTAINS testing
* French translation update, thanks, Martin!
* Threads: fixed #261 (less tolerant null-value-to-number-coercion)
131205
------
* Threads: fixed literal-to-non-literal zero-value comparison bug

Wyświetl plik

@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
modules.threads = '2013-December-04';
modules.threads = '2013-December-05';
var ThreadManager;
var Process;
@ -101,7 +101,7 @@ function snapEquals(a, b) {
var x = +a,
y = +b,
specials = [true, false, '', 0];
specials = [true, false, ''];
// check for special values before coercing to numbers
if (isNaN(x) || isNaN(y) ||