CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/09/19 10:21:21
Modified files:
testsuite/actionscript.all: Number.as
Log message:
Don't use strict-equality operator (===) when target SWF version is < 6
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Number.as 19 Sep 2006 10:03:09 -0000 1.1
+++ Number.as 19 Sep 2006 10:21:21 -0000 1.2
@@ -47,16 +47,18 @@
// TODO: test with SWF target != 6 (the only one tested so far)
//
-rcsid="$Id: Number.as,v 1.1 2006/09/19 10:03:09 strk Exp $";
+rcsid="$Id: Number.as,v 1.2 2006/09/19 10:21:21 strk Exp $";
#include "check.as"
var n1=new Number(268);
+// strict-equality operator was introduced in SWF6
+#if SWFVERSION > 5
check ( ! (n1 === 268) );
-
// They are not the same object !
check ( ! (n1 === Number(268)) );
+#endif
check ( n1 == 268 );
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit