[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Func...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Func... |
Date: |
Wed, 28 Nov 2007 12:23:47 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/11/28 12:23:47
Modified files:
. : ChangeLog
testsuite/actionscript.all: Function.as
Log message:
'new' is a reserved word, protect it as a string when used as property
name
(or Ming 0.4.0.beta6 won't compile it)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4992&r2=1.4993
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.58&r2=1.59
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4992
retrieving revision 1.4993
diff -u -b -r1.4992 -r1.4993
--- ChangeLog 28 Nov 2007 09:02:23 -0000 1.4992
+++ ChangeLog 28 Nov 2007 12:23:47 -0000 1.4993
@@ -1,5 +1,8 @@
2007-11-28 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/Function.as: 'new' is a reserved word,
+ protect it as a string when used as property name (or Ming
+ 0.4.0.beta6 won't compile it)
* server/asobj/Key.cpp: register native Key methods.
* configure.ac: look for QT libs if kde gui is requested;
don't bail out if QTOPIA is not found, unless qtopia gui is
Index: testsuite/actionscript.all/Function.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- testsuite/actionscript.all/Function.as 6 Oct 2007 06:28:29 -0000
1.58
+++ testsuite/actionscript.all/Function.as 28 Nov 2007 12:23:47 -0000
1.59
@@ -21,7 +21,7 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: Function.as,v 1.58 2007/10/06 06:28:29 strk Exp $";
+rcsid="$Id: Function.as,v 1.59 2007/11/28 12:23:47 strk Exp $";
#include "check.as"
@@ -446,14 +446,14 @@
#if OUTPUT_VERSION >= 6
-Function.prototype.new = function()
+Function.prototype['new'] = function()
{
return new this;
};
function Foo() {};
-var fooInstance = Foo.new();
+var fooInstance = Foo['new']();
check_equals(typeof(fooInstance), 'object');
check(fooInstance instanceOf Foo);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Func...,
Sandro Santilli <=