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

Commit 0e2aef1

Browse files
author
exoego
committed
errors module do not exist actually
1 parent 1b0bc24 commit 0e2aef1

File tree

1 file changed

+2
-2
lines changed
  • app/current/src/main/scala/io/scalajs/nodejs

1 file changed

+2
-2
lines changed

app/current/src/main/scala/io/scalajs/nodejs/Error.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.scalajs.nodejs
22

33
import scala.scalajs.js
4-
import scala.scalajs.js.annotation.{JSGlobal, JSImport}
4+
import scala.scalajs.js.annotation.JSGlobal
55

66
/**
77
* Creates a new Error object and sets the error.message property to the provided text message.
@@ -12,7 +12,7 @@ import scala.scalajs.js.annotation.{JSGlobal, JSImport}
1212
* Error.stackTraceLimit, whichever is smaller.
1313
*/
1414
@js.native
15-
@JSImport("errors", "Error")
15+
@JSGlobal
1616
class Error(message0: String = js.native) extends js.Object {
1717

1818
/**

0 commit comments

Comments
 (0)