Package

org.scalajs

jsenv

Permalink

package jsenv

Visibility
  1. Public
  2. All

Type Members

  1. trait AsyncJSEnv extends JSEnv

    Permalink
  2. trait AsyncJSRunner extends AnyRef

    Permalink
  3. trait ComJSEnv extends AsyncJSEnv

    Permalink

    An AsyncJSEnv that provides communication to and from the JS VM.

    An AsyncJSEnv that provides communication to and from the JS VM.

    Inside the VM there is a global JavaScript object named scalajsCom that can be used to control the message channel. It's operations are:

    // initialize com (with callback)
    scalajsCom.init(function(msg) { console.log("Received: " + msg); });
    
    // send a message to host system
    scalajsCom.send("my message");
    
    // close com (releases callback, allowing VM to terminate)
    scalajsCom.close();
  4. trait ComJSRunner extends AsyncJSRunner

    Permalink
  5. abstract class ExternalJSEnv extends AsyncJSEnv

    Permalink
  6. trait JSConsole extends AnyRef

    Permalink

    Trait representing a JS console

  7. trait JSEnv extends AnyRef

    Permalink
  8. trait JSInitFiles extends AnyRef

    Permalink
  9. trait JSRunner extends AnyRef

    Permalink
  10. trait LinkingUnitAsyncJSEnv extends LinkingUnitJSEnv with AsyncJSEnv

    Permalink
  11. trait LinkingUnitComJSEnv extends LinkingUnitAsyncJSEnv with ComJSEnv

    Permalink
  12. trait LinkingUnitJSEnv extends JSEnv

    Permalink
  13. final class RetryingComJSEnv extends ComJSEnv

    Permalink

    A RetryingComJSEnv allows to automatically retry if a call to the underlying ComJSRunner fails.

    A RetryingComJSEnv allows to automatically retry if a call to the underlying ComJSRunner fails.

    While it protects the JVM side from observing state that differs inbetween runs that have been retried, it assumes that the executed JavaScript code does not have side-effects other than the ones visible through the channel (e.g. writing to a file). It is the users responsibility to ensure this property.

    No retrying is performed for synchronous, or normal asynchronous runs.

  14. final class VirtualFileMaterializer extends AnyRef

    Permalink

    A helper class to temporarily store virtual files to the filesystem.

    A helper class to temporarily store virtual files to the filesystem.

    Can be used with tools that require real files.

Value Members

  1. object ComJSEnv

    Permalink
  2. object ConsoleJSConsole extends JSConsole

    Permalink

    A JS console that prints on the console

  3. object ExternalJSEnv

    Permalink
  4. object NullJSConsole extends JSConsole

    Permalink
  5. package nodejs

    Permalink
  6. package phantomjs

    Permalink
  7. package rhino

    Permalink

Ungrouped