[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:
<http://savannah.gnu.org/bugs/?38084>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, (continued)
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Sandro Santilli, 2013/01/14
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Sandro Santilli, 2013/01/14
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, bl0ckeduser, 2013/01/14
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Benjamin Wolsey, 2013/01/15
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Sandro Santilli, 2013/01/15
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Sandro Santilli, 2013/01/15
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, bl0ckeduser, 2013/01/15
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Sandro Santilli, 2013/01/16
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, bl0ckeduser, 2013/01/16
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, bl0ckeduser, 2013/01/17
- [Gnash-commit] [bug #38084] Superclass prototype method call failure,
Sandro Santilli <=
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Sandro Santilli, 2013/01/25
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, bl0ckeduser, 2013/01/25
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, bl0ckeduser, 2013/01/27
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, Sandro Santilli, 2013/01/28
- [Gnash-commit] [bug #38084] Superclass prototype method call failure, bl0ckeduser, 2013/01/28