taskGnash - The GNU Flash player - Tasks: task #7373, fix ActionScript 'super'...


You are not allowed to post comments on this tracker with your current authentication level.

task #7373: fix ActionScript 'super' computation

Submitted by:  Sandro Santilli <strk>
Submitted on:  Wed Oct 10 17:53:28 2007  
Should Start On: Tue Oct 9 22:00:00 2007Should be Finished on: Tue Oct 9 22:00:00 2007
Category: NonePriority: 7 - High
Status: DonePrivacy: Public
Percent Complete: 100%Assigned to: Sandro Santilli <strk>
Open/Closed: ClosedEffort: 0.00

(Jump to the original submission Jump to the original submission)

Thu Jun 19 14:20:24 2008, comment #8:

all known super-related tests succeed now.
Cleanups would still be worth, as adding more tests seeking
for breaks.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue Mar 11 20:51:32 2008, comment #7:

Ok, was too entusiastic :)
We still have some version-specific issue in finding
a super from ActionCallMethod, where the method is found
some prototypes higher then just one level up.

test case: swfdec/super-missing-{7,8}.swf

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue Mar 11 09:00:56 2008, comment #6:

I belive I'm done with this.
What's left may as well be considered a bug, so please hunt
for super bugs :)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon Mar 10 21:46:08 2008, comment #5:

Attached is a patch that yelds 20 XPASS and 2 FAIL.
Fixes Kirupa_OOP_soldier_deconstruct.swf (file #13717 attached to bug #20832).
Fixes bug #22464.

Needs more cleanup, in particular in fetching the _proto_
member of as_object, this patch dropping support for the
visibility flag.

(file #15227)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri Mar 7 16:05:27 2008, comment #4:

Started a wiki page for the RE task:

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri Mar 7 12:32:35 2008, comment #3:

Attached a test case that suggests the following:

1. Super is a special type of object bound to a constructor
and to a prototype
2. Calling this special object yeld a call to the associated
3. Fetching properties of this special object yeld properties
of the associated prototype
4. Association with the constructor and with the prototype
are set when the 'super' object is created, and cannot
be changed by ActionScript.

(file #15202, file #15203)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue Oct 16 08:17:36 2007, comment #2:

bug #21283 now contains another testcase:
a0652165c62594083f3f6b7b83765825 KeyCodes.swf
file #14146

Sandro Santilli <strk>
Project MemberIn charge of this item.
Thu Oct 11 20:03:56 2007, comment #1:

Other testcase is bug #21283
md5: c0316412d0f3bbd1356ac641d2e2f80f

Sandro Santilli <strk>
Project MemberIn charge of this item.
Wed Oct 10 17:53:28 2007, original submission:

Current Gnash implementation computes 'super' from 'this'.
This is not correct as if a constructor calls the upper class constructor, this will result in an infinite recursion.

We have an automated testcase for this in misc-mtasc.all (super_test1.swf) and a few bug items for external movies.

Known ones so far are:

bug #21304
md5 b8906d802d2e2f2c2afff9d4a3df1cb4

bug #21295
md5 f00c703b495bc117a2b99e26c17b9d4c

Sandro Santilli <strk>
Project MemberIn charge of this item.


Attached Files
file #15227:  super.patch added by strk (17kB - text/x-patch)
file #15202:  mx.as added by strk (5kB - application/x-applix-spreadsheet)
file #15203:  mx.swf added by strk (1kB - application/x-shockwave-flash)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -unavailable- added by strk
  • -unavailable- added by strk (Submitted the item)
  • -unavailable- added by strk

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 14 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Jul 12 00:32:38 2008strkOpen/ClosedOpen=>Closed
    Sat Jul 12 00:32:37 2008strkStatusReady For Test=>Done
    Thu Jun 19 14:20:24 2008strkPercent Complete90%=>100%
    Tue Mar 11 20:51:32 2008strkPercent Complete100%=>90%
    Tue Mar 11 09:00:56 2008strkStatusIn Progress=>Ready For Test
      Percent Complete50%=>100%
    Mon Mar 10 21:46:08 2008strkAttached File-=>Added super.patch, #15227
      Priority5 - Normal=>7 - High
      StatusNone=>In Progress
      Percent Complete0%=>50%
    Fri Mar 7 12:32:35 2008strkAttached File-=>Added mx.as, #15202
      Attached File-=>Added mx.swf, #15203
      Carbon-Copy-=>Added zoulunkai
    Wed Oct 10 17:53:28 2007strkCarbon-Copy-=>Added cmusick

    Back to the top

    Powered by Savane 3.1-cleanup1