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.

Reply via email to