[Top][All Lists]

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

[Gnash-commit] [bug #38084] Superclass prototype method call failure

From: Sandro Santilli
Subject: [Gnash-commit] [bug #38084] Superclass prototype method call failure
Date: Mon, 21 Jan 2013 11:00:09 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0

Follow-up Comment #10, bug #38084 (project gnash):

I made a few more tests this weekend and found a simpler testcase:

function X() { trace('X ctor'); }
X.prototype = new XMLSocket();
trace("creating new object");
o = new X();
trace(o.connect("localhost", 2229));

With the proprietary player you'll get "false" returned from o.connect, while
with Gnash you'll get "undefined" (due to the impossibility to find "this"
pointing at the object that would be created by XMLSocket constructor.

The idea of an "alternate this" is interesting but it could be maybe even
better to have a proper "this" constructed as the very first thing.

More tests would be nice.
For example, can we think of other builtin objects (needing a strong-typed
"this") that we can try to chain into a single inheritance to see if all
functions work on the same object even if expecting different type of "this"
objects ?

bl0ckeduser: good tests are very important. even if they are known to fail
(you can mark them so with the xcheck/xcheck_equals). We mostly used tests as
a way to reverse engeneer the proprietary player.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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