gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/testsuite/actionscript.all String.as


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/actionscript.all String.as
Date: Mon, 31 Mar 2008 07:25:26 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  08/03/31 07:25:26

Modified files:
        testsuite/actionscript.all: String.as 

Log message:
        Use  delete a["length"]  instead of   delete a.length.  The later one 
doesn't compile with Ming beta4 and beta5. That's funny. Tests show that 
"delete everything.length" just doesn't compile with Ming beta5 here, while 
"delete xxx.yyy" compiles.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/String.as?cvsroot=gnash&r1=1.51&r2=1.52

Patches:
Index: String.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/String.as,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- String.as   30 Mar 2008 17:09:32 -0000      1.51
+++ String.as   31 Mar 2008 07:25:26 -0000      1.52
@@ -17,7 +17,7 @@
 // Original author: Mike Carlson - June 19th, 2006
 
 
-rcsid="$Id: String.as,v 1.51 2008/03/30 17:09:32 strk Exp $";
+rcsid="$Id: String.as,v 1.52 2008/03/31 07:25:26 zoulunkai Exp $";
 #include "check.as"
 
 check_equals(typeof(String), 'function');
@@ -777,7 +777,7 @@
 check_equals(a, "123"); // not changing the actual string
 a.length = "another string";
 check_equals(a.length, "another string"); // can also be of a different type
-delete a.length;
+delete a["length"];
 check_equals(a.length, "another string"); // can't be deleted
 #if OUTPUT_VERSION > 5
  check(a.hasOwnProperty('length'));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]