Skip to content

Commit

Permalink
Adding weird loop syntax from http://pastebin.com/1MDyFVJA
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Fujiwara committed Jan 5, 2012
1 parent cfccfa1 commit 3cff44d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions SWFCorpse/src/SWFCorpse.as
Expand Up @@ -192,6 +192,20 @@ package
internal static var internalStaticVar:Boolean;
custom static var customStaticVar:Boolean;
*/

public static function testStrangeLoops():void
{
var o:Object = {foo: 'bar', hello: 'world', one: 'one', two: 'two'};

var v:Array = [];
for each(v[v.length] in o);
trace(v);

var k:Array = [];
for(k[k.length] in o);
trace(k);
}

public static function testFor():void
{
for(var i:uint = 0; i < 10; i++)
Expand Down

0 comments on commit 3cff44d

Please sign in to comment.