Ah, right. I don't think we're going to do anything about that.

On Tue, Dec 17, 2013 at 4:37 AM, Thomas Heller <[email protected]> wrote:

> FWIW I had some troubles with native types before, mine were related to IE
> though. The culprit for your troubles is goog.typeOf (which is a basic
> wrapper arrount js/typeof).
>
> If you run this via phantomjs
>
> -----
> console.log("typeof", typeof(5));
>
> Number.prototype.foo = function() {
>     console.log("typeof prototype", typeof(this));
> };
>
> (5).foo();
>
> phantom.exit(0);
> -----
>
> You get
>
> typeof number
> typeof prototype object
>
> Pretty sure the problem goes away cause in advanced compilation cause it
> gets inlined and (.foo 5) is turned into (m 5) skipping the step with this.
> Just a guess though.
>
> HTH,
> /thomas
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to