Bug report: instanceof incompatible with mozilla_compat's importClass
Tal Liron
tal.liron at threecrickets.com
Wed Oct 9 22:33:22 PDT 2013
Hm, would there be any bad consequences to calling
load('nashorn:mozilla_compat.js') twice?
On 10/10/2013 01:08 PM, A. Sundararajan wrote:
> I hope you call load('nashorn:mozilla_compat.js') as a top-level
> expression -- and not within a function. Because mozilla_compat.js
> assumes it is being evaluated with 'this' as global scope.
>
> ReferenceError may be from importPackage -- because importPackage is
> the one that installs __noSuchProperty__ hook to the global scope.
> That is to make sure unresolved globals are checked for possible imports.
More information about the nashorn-dev
mailing list