Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Jul 30, 2020
1 parent 9f082e4 commit 65f9564
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.scalajs.nodejs.vm

import com.thoughtworks.enableIf
import net.exoego.scalajs.types.util.Factory

import scala.scalajs.js
Expand Down Expand Up @@ -75,6 +76,9 @@ trait RunInNewContextOptions extends js.Object {
var contextName: js.UndefOr[String] = js.undefined
var contextOrigin: js.UndefOr[String] = js.undefined
var contextCodeGeneration: js.UndefOr[CodeGeneration] = js.undefined

@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs14)
var microtaskMode: js.UndefOr[String] = js.undefined
}

@Factory
Expand Down
4 changes: 4 additions & 0 deletions app/nodejs-v14/src/main/scala/io/scalajs/nodejs/vm/VM.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.scalajs.nodejs.vm

import com.thoughtworks.enableIf
import net.exoego.scalajs.types.util.Factory

import scala.scalajs.js
Expand Down Expand Up @@ -101,6 +102,9 @@ trait CreateContextOptions extends js.Object {
var name: js.UndefOr[String] = js.undefined
var origin: js.UndefOr[String] = js.undefined
var codeGeneration: js.UndefOr[CodeGeneration] = js.undefined

@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs14)
var microtaskMode: js.UndefOr[String] = js.undefined
}

@Factory
Expand Down

0 comments on commit 65f9564

Please sign in to comment.