diff --git a/README.md b/README.md index 5e1e904ec..acb40d26b 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ The following core Node.js modules (v8.7.0+) have been implemented: | [tty](https://nodejs.org/api/tty.html) | :heavy_check_mark: | | [url](https://nodejs.org/api/url.html) | :heavy_check_mark: | | [util](https://nodejs.org/api/util.html) | :heavy_check_mark: | -| [vm](https://nodejs.org/api/vm.html) | | +| [vm](https://nodejs.org/api/vm.html) | :heavy_check_mark: | | [zlib](https://nodejs.org/api/zlib.html) | | ## How to use diff --git a/app/current/src/main/scala/io/scalajs/nodejs/vm/ContextOptions.scala b/app/current/src/main/scala/io/scalajs/nodejs/vm/ContextOptions.scala deleted file mode 100644 index 20d237bb6..000000000 --- a/app/current/src/main/scala/io/scalajs/nodejs/vm/ContextOptions.scala +++ /dev/null @@ -1,20 +0,0 @@ -package io.scalajs.nodejs.vm - -import scala.scalajs.js - -/** - * Script Context Options - * @param filename Specifies the filename used in stack traces produced by this script. - * @param lineOffset Specifies the line number offset that is displayed in stack traces produced by this script. - * @param columnOffset Specifies the column number offset that is displayed in stack traces produced by this script. - * @param displayErrors When true, if an Error error occurs while compiling the code, the line of code causing the error - * is attached to the stack trace. - * @param timeout Specifies the number of milliseconds to execute code before terminating execution. If execution - * is terminated, an Error will be thrown. - */ -class ContextOptions(var filename: js.UndefOr[String] = js.undefined, - var lineOffset: js.UndefOr[Int] = js.undefined, - var columnOffset: js.UndefOr[Int] = js.undefined, - var displayErrors: js.UndefOr[Boolean] = js.undefined, - var timeout: js.UndefOr[Int] = js.undefined) - extends js.Object diff --git a/app/current/src/main/scala/io/scalajs/nodejs/vm/ContextifyScript.scala b/app/current/src/main/scala/io/scalajs/nodejs/vm/ContextifyScript.scala deleted file mode 100644 index 253a33697..000000000 --- a/app/current/src/main/scala/io/scalajs/nodejs/vm/ContextifyScript.scala +++ /dev/null @@ -1,66 +0,0 @@ -package io.scalajs.nodejs.vm - -import scala.scalajs.js - -/** - * Contextify Script - */ -@js.native -trait ContextifyScript extends js.Object { - - ///////////////////////////////////////////////////////////////////////////////// - // Methods - ///////////////////////////////////////////////////////////////////////////////// - - /** - * If given a sandbox object, the vm.createContext() method will - * [prepare that sandbox][#vm_what_does_it_mean_to_contextify_an_object] so that it can be used in calls to - * vm.runInContext() or script.runInContext(). Inside such scripts, the sandbox object will be the global object, - * retaining all of its existing properties but also having the built-in objects and functions any standard global - * object has. Outside of scripts run by the vm module, sandbox will remain unchanged. - * - * If sandbox is omitted (or passed explicitly as undefined), a new, empty contextified sandbox object will be returned. - * - * The vm.createContext() method is primarily useful for creating a single sandbox that can be used to run multiple - * scripts. For instance, if emulating a web browser, the method can be used to create a single sandbox representing - * a window's global object, then run all