object global extends Object with Global
In browsers, the top-level scope is the global scope. That means that in browsers if you're in the global scope var something will define a global variable. In Node.js this is different. The top-level scope is not the global scope; var something inside a Node.js module will be local to that module.
- Annotations
- @native() @JSGlobal( "global" )
- Alphabetic
- By Inheritance
- global
- Global
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
DTRACE_HTTP_CLIENT_REQUEST: Function
- Definition Classes
- Global
-
def
DTRACE_HTTP_CLIENT_RESPONSE: Function
- Definition Classes
- Global
-
def
DTRACE_HTTP_SERVER_REQUEST: Function
- Definition Classes
- Global
-
def
DTRACE_HTTP_SERVER_RESPONSE: Function
- Definition Classes
- Global
-
def
DTRACE_NET_SERVER_CONNECTION: Function
- Definition Classes
- Global
-
def
DTRACE_NET_STREAM_END: Function
- Definition Classes
- Global
-
def
__dirname: String
The name of the directory that the currently executing script resides in.
The name of the directory that the currently executing script resides in.
- Definition Classes
- Global
-
def
__filename: String
The filename of the code being executed.
The filename of the code being executed. This is the resolved absolute path of this code file. For a main program this is not necessarily the same filename used in the command line. The value inside a module is the path to that module file.
- Definition Classes
- Global
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clearImmediate: ClearImmediate
- Definition Classes
- Global
-
def
clearInterval: ClearInterval
- Definition Classes
- Global
-
def
clearTimeout: ClearTimeout
- Definition Classes
- Global
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
console: Console
- Definition Classes
- Global
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
exports: Object
A reference to the module.exports that is shorter to type.
A reference to the module.exports that is shorter to type. See module system documentation for details on when to use exports and when to use module.exports.
exports isn't actually a global but rather local to each module.
- Definition Classes
- Global
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
val
module: Module
A reference to the current module.
A reference to the current module. In particular module.exports is used for defining what a module exports and makes available through require().
module isn't actually a global but rather local to each module.
- Definition Classes
- Global
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
process: Process
- Definition Classes
- Global
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
ref: Ref
- Definition Classes
- Global
-
def
setImmediate: SetImmediate
- Definition Classes
- Global
-
def
setInterval: SetInterval
- Definition Classes
- Global
-
def
setTimeout: SetTimeout
- Definition Classes
- Global
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unref: UnRef
- Definition Classes
- Global
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )