org.scalajs.core.ir.Trees.JSNativeLoadSpec
Load from the global scope.
The path is a series of nested property names starting from the global object.
path
The path can be empty, in which case this denotes the global object itself.
Any element in the path is a property selection from there. A global scope loading spec with one path element is therefore a global variable.
Examples:
// Global(None, Nil) // .Date Global(None, List("Date")) // .cp.Vect Global(None, List("cp", "Vect"))
Load from the global scope.
The
path
is a series of nested property names starting from the global object.The path can be empty, in which case this denotes the global object itself.
Any element in the path is a property selection from there. A global scope loading spec with one path element is therefore a global variable.
Examples: