add test for frames and bytes properties of empty movies
[swfdec.git] / test / trace / object-watch-segv.as
blobdb06b4ace9e40e1fb07162320e36540c7ace6088
1 // makeswf -v 7 -s 200x150 -r 1 -o object-watch-segv.swf object-watch-segv.as
3 function foo (name, old, new, data) {
4 delete this[x];
5 trace ("run " + data);
6 return new + 1;
7 };
8 function evil () {
9 this.unwatch ("x");
10 return 5;
13 trace (this.watch ("x", foo, 1));
14 trace (this.watch ("x", foo, 2));
15 this.x = 42;
16 trace (x);
17 delete this[x];
18 this.x = 10;
19 trace (x);
20 trace (this.hasOwnProperty ("x"));
21 trace (this.watch ("x", evil));
22 this.x = 100;
23 trace (this.x);
25 loadMovie ("FSCommand:quit", "");