remove "*&val" references
[swfdec.git] / test / trace / super-this.as
blob50bd19cc2cbe7a9c5ec0c658c02a8880ad520616
1 // makeswf -v 7 -s 200x150 -r 1 -o super-this.swf super-this.as
3 trace ("Check super when calling functions on various objects");
5 function foo () {
6 trace (super);
7 };
8 x = new foo ();
9 foo ();
10 x.foo = foo;
11 x.foo ();
12 XML.foo = foo;
13 XML.foo ();
14 Function.foo = foo;
15 Function.foo ();
16 s = new String ("hi");
17 s.foo = foo;
18 s.foo ();
19 o = new Object ();
20 o.toString = function () {
21 #if __SWF_VERSION__ <= 5
22 if (o == this)
23 #else
24 if (o === this)
25 #endif
26 trace ("Wohoo");
27 return "hi";
29 o.foo = foo;
30 o.foo ();
31 o.__proto__ = new Object ();
32 o.__proto__.__proto__.toString = o.toString;
33 o.foo ();
35 loadMovie ("FSCommand:quit", "");