Bug report: instanceof incompatible with mozilla_compat's importClass

Tal Liron tal.liron at threecrickets.com
Thu Oct 10 12:03:02 PDT 2013


Thanks for your efforts, Sundar. This bug is proving very hard to 
isolate... all my attempts at a simple example don't reproduce the bug. 
(It occurs in a rather complex program in a Scripturian environment.)

I have a question, though, on my current line of inquiry: Why does the 
definition of importClass in mozilla_compat use Object.defineProperty on 
"this"? This approach seems to limit portability. Is there no way to 
access the global scope from JavaScript? Or, perhaps, would it be 
possible to use the Object prototype instead?

On 10/10/2013 05:47 PM, A. Sundararajan wrote:
> Hmm.. does not seem to be the case..



More information about the nashorn-dev mailing list