repo.or.cz
/
swfdec.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
release 0.5.4
[swfdec.git]
/
test
/
trace
/
with-function-delete.as
blob
3bc559a902c119fe94c2ea21dc2482047c27480e
1
// makeswf -v 7 -s 200x150 -r 1 -o with-function-delete.swf with-function-delete.as
2
3
trace
(
"Check how delete works inside functions defined in a With statement"
);
4
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
;
16
};
17
};
18
};
19
20
foo
(
3
);
21
foo
(
4
);
22
foo
(
5
);
23
foo
(
6
);
24
foo
(
7
);
25
26
loadMovie
(
"FSCommand:quit"
,
""
);