Bluestep JS Documentation
    Preparing search index...

    Function loadWithNewGlobal

    • This method behaves similar to load function. Relevant difference is that the code is evaluated in a new global scope (Realm, as defined by ECMAScript).

      Source can be of type:

      • java.lang.URL: the URL is queried for the source code to execute.
      • a JavaScript object: the object is queried for a name and a script property.
      • all other types: the source is converted to a String.

      The value of arguments is provided to the loaded code upon execution.

      Parameters

      • source: any
      • arguments: any

      Returns any