gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/dele...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/dele...
Date: Mon, 12 Mar 2007 18:27:40 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/03/12 18:27:40

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: delete.as 

Log message:
        add test to check that a user-defined function's prototype is not 
deletable (fails in Gnash!).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2612&r2=1.2613
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/delete.as?cvsroot=gnash&r1=1.9&r2=1.10

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2612
retrieving revision 1.2613
diff -u -b -r1.2612 -r1.2613
--- ChangeLog   12 Mar 2007 17:31:28 -0000      1.2612
+++ ChangeLog   12 Mar 2007 18:27:40 -0000      1.2613
@@ -2,7 +2,8 @@
 
        * testsuite/actionscript.all/delete.as: add test verifying that
          delete on object references won't affect other references
-         on the same object.
+         on the same object; add test to check that a user-defined
+         function's prototype is not deletable (fails in Gnash!).
        * server/vm/ASHandlers.cpp (ActionCallFunction, ActionCallMethod,
          ActionNewMethod): rather then pushing undefined values for
          missing argument values on the stack, warn about the type of

Index: testsuite/actionscript.all/delete.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/delete.as,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- testsuite/actionscript.all/delete.as        12 Mar 2007 17:31:29 -0000      
1.9
+++ testsuite/actionscript.all/delete.as        12 Mar 2007 18:27:40 -0000      
1.10
@@ -1,4 +1,4 @@
-rcsid="$Id: delete.as,v 1.9 2007/03/12 17:31:29 strk Exp $";
+rcsid="$Id: delete.as,v 1.10 2007/03/12 18:27:40 strk Exp $";
 
 #include "check.as"
 
@@ -45,3 +45,15 @@
        check(!delete a);
 }
 
+//
+// Deleting a user function's prototype
+//
+
+function func() {};
+func.prototype.appended_value = 4;
+check_equals(typeof(func.prototype), 'object');
+check_equals(func.prototype.appended_value, 4);
+//protoback = MovieClip.prototype;
+check(!delete func.prototype);
+check_equals(typeof(func.prototype), 'object');
+check_equals(func.prototype.appended_value, 4);




reply via email to

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