I can't identify a commit where the problem was introduced. The test I
have fails consistently back through to
5b7623873ff8713a556f3b52fe1912c98ac8bbc5, which is ~9 months old. If I
go back further, then script/bootstrap starts failing, and the test
script I'm using doesn't produce any output at all. Certainly a
long-standing bug...
Interestingly, the problem doesn't manifest under advanced compilation,
which I find counterintuitive.
The behaviour is consistent across multiple runtimes; I tested mostly
under phantomjs 1.9.0, but the advanced vs. whitespace difference is
also present under Chrome. I'm not very handy with node (couldn't get
it to run anything with non-advanced optimizations), but the test
doesn't fail under advanced compilation there, either.
I've updated the gist with the test file and script I used:
https://gist.github.com/cemerick/7998162
Not up for spelunking through compilation results a.t.m.; hopefully the
above provides some useful hints.
Thanks,
- Chas
On 12/16/2013 11:51 PM, David Nolen wrote:
Nothing obvious to me. Git bisect would help here. Thanks.
On Monday, December 16, 2013, Chas Emerick wrote:
I'm using 2120, and seeing some _very_ bizarre behaviour
attempting to call a protocol method with a JS native (a number in
this case) via `this` from a method installed on that native's
prototype:
https://gist.github.com/cemerick/7998162
As you can see, the "workaround" of consing up the same number
from within the prototype method appears to work. Bizarre, no?
Does anyone see something clearly wrong with how I'm going about
things here (perhaps treading on some subtlety of prototypes of
which I'm not aware), or is this a protocol dispatch bug?
Thanks,
- Chas
--
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.
--
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.