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
add test for frames and bytes properties of empty movies
[swfdec.git]
/
test
/
trace
/
callmethod-undefined-this.as
blob
441bbc53e405d6743a96a331bedd96d86094c272
1
// makeswf -v 7 -s 200x150 -r 1 -o callmethod-undefined-this.swf callmethod-undefined-this.as
2
3
trace
(
"Test the behaviour of CallMethod with a function name of undefined or
\"\"
"
);
4
function
foo
() {
5
trace
(
this
);
6
this
.
x
=
15
;
7
trace
(
this
.
x
);
8
return
this
;
9
};
10
asm
{
11
push
0
,
"foo"
12
getvariable
13
push
undefined
14
callmethod
15
trace
16
};
17
asm
{
18
push
0
,
"foo"
19
getvariable
20
push
""
21
callmethod
22
trace
23
};
24
25
loadMovie
(
"FSCommand:quit"
,
""
);