scala.scalajs.runtime

EnvironmentInfo

trait EnvironmentInfo extends Object

Information about the JavaScript environment Scala.js runs in.

Holds configuration for the Scala.js internals and should not be used directly (could be retrieved via runtime.environmentInfo).

This facade type serves as a documentation on what aspects of Scala.js can be influenced through environment options.

Upon startup, Scala.js checks whether the name __ScalaJSEnv is defined in its scope (and references an object). If so, it uses it as environment info. Missing, non-optional fields (according to this facade type) are initialized to default values, optional fields are kept as in the original object. Finally, js.Object.freeze is called on the object to avoid modification.

Annotations
@RawJSType() @native()
Linear Supertypes
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. EnvironmentInfo
  2. Object
  3. Any
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def javaSystemProperties: UndefOr[Dictionary[String]]

    Dictionary of system properties to add to java.

    Dictionary of system properties to add to java.lang.System.getProperties()

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (EnvironmentInfo, B)

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to ArrowAssoc[EnvironmentInfo] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (EnvironmentInfo) ⇒ Boolean, msg: ⇒ Any): EnvironmentInfo

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to Ensuring[EnvironmentInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (EnvironmentInfo) ⇒ Boolean): EnvironmentInfo

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to Ensuring[EnvironmentInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): EnvironmentInfo

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to Ensuring[EnvironmentInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): EnvironmentInfo

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to Ensuring[EnvironmentInfo] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def exitFunction: UndefOr[js.Function1[Int, Nothing]]

    The function that is called by java.lang.Runtime.exit

  17. def exportsNamespace: js.Dynamic

    The scope for Scala.

    The scope for Scala.js exports (i.e. objects and classes)

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def global: js.Dynamic

    The global JavaScript scope (corresponds to js.

    The global JavaScript scope (corresponds to js.Dynamic.global)

  22. def hasOwnProperty(v: String): Boolean

    Tests whether this object has the specified property as a direct property.

    Tests whether this object has the specified property as a direct property.

    Unlike js.Object.hasProperty, this method does not check down the object's prototype chain.

    MDN

    Definition Classes
    Object
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def isPrototypeOf(v: Object): Boolean

    Tests whether this object is in the prototype chain of another object.

    Tests whether this object is in the prototype chain of another object.

    Definition Classes
    Object
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def propertyIsEnumerable(v: String): Boolean

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain. If the object does not have the specified property, this method returns false.

    MDN

    Definition Classes
    Object
  30. def sourceMapper: UndefOr[js.Function1[js.Array[JSStackTraceElem], js.Array[JSStackTraceElem]]]

    Method used to source map JavaScript stack traces

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toLocaleString(): String

    Definition Classes
    Object
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def valueOf(): Any

    Definition Classes
    Object
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (EnvironmentInfo, B)

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to ArrowAssoc[EnvironmentInfo] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (environmentInfo: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (environmentInfo: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: EnvironmentInfo

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to ArrowAssoc[EnvironmentInfo] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (environmentInfo: ArrowAssoc[EnvironmentInfo]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: EnvironmentInfo

    Implicit information
    This member is added by an implicit conversion from EnvironmentInfo to Ensuring[EnvironmentInfo] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (environmentInfo: Ensuring[EnvironmentInfo]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Object

Inherited from js.Any

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from EnvironmentInfo to StringAdd

Inherited by implicit conversion any2stringfmt from EnvironmentInfo to StringFormat

Inherited by implicit conversion any2ArrowAssoc from EnvironmentInfo to ArrowAssoc[EnvironmentInfo]

Inherited by implicit conversion any2Ensuring from EnvironmentInfo to Ensuring[EnvironmentInfo]

envInfo

Ungrouped