Packages

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" )
Linear Supertypes
Global, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. global
  2. Global
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def DTRACE_HTTP_CLIENT_REQUEST: Function
    Definition Classes
    Global
  5. def DTRACE_HTTP_CLIENT_RESPONSE: Function
    Definition Classes
    Global
  6. def DTRACE_HTTP_SERVER_REQUEST: Function
    Definition Classes
    Global
  7. def DTRACE_HTTP_SERVER_RESPONSE: Function
    Definition Classes
    Global
  8. def DTRACE_NET_SERVER_CONNECTION: Function
    Definition Classes
    Global
  9. def DTRACE_NET_STREAM_END: Function
    Definition Classes
    Global
  10. 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
  11. 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
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clearImmediate: ClearImmediate
    Definition Classes
    Global
  14. def clearInterval: ClearInterval
    Definition Classes
    Global
  15. def clearTimeout: ClearTimeout
    Definition Classes
    Global
  16. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def console: Console
    Definition Classes
    Global
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. 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
  21. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  27. 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
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. def process: Process
    Definition Classes
    Global
  32. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  33. def ref: Ref
    Definition Classes
    Global
  34. def setImmediate: SetImmediate
    Definition Classes
    Global
  35. def setInterval: SetInterval
    Definition Classes
    Global
  36. def setTimeout: SetTimeout
    Definition Classes
    Global
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. def toLocaleString(): String
    Definition Classes
    Object
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def unref: UnRef
    Definition Classes
    Global
  41. def valueOf(): Any
    Definition Classes
    Object
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Global

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped