release 0.5.4
[swfdec.git] / test / trace / invalid-variable-name.as
blob751b73063d95e08818ec55c110a65354c0098b61
1 // makeswf -v 7 -s 200x150 -r 1 -o invalid-variable-name.swf invalid-variable-name.as
3 trace ("Check for invalid variable names");
5 for (i = 0; i < 300; i++) {
6 name = String.fromCharCode (i);
7 trace (">>> " + name + " (" + i + ")");
8 if (name != "i" && name != "I") {
9 this[name] = 42;
10 trace (this[name]);
11 asm {
12 push "name"
13 getvariable
14 getvariable
15 trace
17 trace (this.hasOwnProperty (name));
18 name = "a" + name;
19 this[name] = 42;
20 trace (this[name]);
21 asm {
22 push "name"
23 getvariable
24 getvariable
25 trace
27 trace (this.hasOwnProperty (name));
28 name = name + "b";
29 this[name] = 42;
30 trace (this[name]);
31 asm {
32 push "name"
33 getvariable
34 getvariable
35 trace
37 trace (this.hasOwnProperty (name));
41 loadMovie ("FSCommand:quit", "");