gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] /srv/bzr/gnash/avm2 r9590: Correctly access an object


From: strk
Subject: Re: [Gnash-commit] /srv/bzr/gnash/avm2 r9590: Correctly access an object's prototype, and other small improvements.
Date: Wed, 8 Oct 2008 10:37:37 +0200

On Sun, Oct 05, 2008 at 09:07:54PM +0800, Tom Stellard wrote:
> ------------------------------------------------------------

> +     #TODO: Figure out the difference between typeof and typeOf
> +     if($_ =~ /type[Oo]f/ ){

IIRC, the official syntax is 'typeof', but Ming supports both, for
historical reasons. It results in an opcode (SWFACTION_TYPEOF)
that's why it's important..

With the official IDE, if you use a non-standard syntax you get
a CALL rather then a TYPEOF opcode:

        typeof( x );
        typeOf( x );

I don't think any of our tests rely on that difference because
Ming doesn't care. It's likely worth to confirm the official
syntax for it and convert our testcases to only use that,
and check if everything still works...

--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]