release 0.5.4
[swfdec.git] / test / trace / with-function-delete.as
blob3bc559a902c119fe94c2ea21dc2482047c27480e
1 // makeswf -v 7 -s 200x150 -r 1 -o with-function-delete.swf with-function-delete.as
3 trace ("Check how delete works inside functions defined in a With statement");
5 x = 0;
6 _global.x = -1;
7 o = { x: 1 };
8 p = { x: 2 };
9 with (o) {
10 with (p) {
11 foo = function (x) {
12 trace (x);
13 delete x;
14 trace (x);
15 delete x;
20 foo (3);
21 foo (4);
22 foo (5);
23 foo (6);
24 foo (7);
26 loadMovie ("FSCommand:quit", "");