This repository was archived by the owner on Jul 30, 2024. It is now read-only.
File tree 2 files changed +3
-12
lines changed
app/current/src/main/scala/io/scalajs/nodejs 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 1
1
package io .scalajs .nodejs
2
2
3
3
import scala .scalajs .js
4
- import scala .scalajs .js .annotation .{ JSGlobal , JSImport }
4
+ import scala .scalajs .js .annotation .JSGlobal
5
5
6
6
/**
7
7
* 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}
12
12
* Error.stackTraceLimit, whichever is smaller.
13
13
*/
14
14
@ js.native
15
- @ JSImport ( " errors " , " Error " )
15
+ @ JSGlobal
16
16
class Error (message0 : String = js.native) extends js.Object {
17
17
18
18
/**
Original file line number Diff line number Diff line change 1
1
package io .scalajs .nodejs
2
2
3
3
import scala .scalajs .js
4
- import scala .scalajs .js .annotation .JSImport
5
4
import scala .scalajs .js .|
6
5
7
6
/**
8
7
* System Error
9
8
*/
10
9
@ js.native
11
- @ JSImport (" errors" , " SystemError" )
12
- class SystemError (message0 : String = js.native) extends Error (message0) {
10
+ trait SystemError extends Error {
13
11
14
12
/**
15
13
* The error.errno property is a number or a string. The number is a negative value which corresponds
@@ -45,13 +43,6 @@ class SystemError(message0: String = js.native) extends Error(message0) {
45
43
val info : js.Object = js.native
46
44
}
47
45
48
- /**
49
- * System Error Singleton
50
- */
51
- @ js.native
52
- @ JSImport (" errors" , JSImport .Namespace )
53
- object SystemError extends Error
54
-
55
46
object SystemErrorCodes {
56
47
@ inline final val E2BIG = " E2BIG"
57
48
@ inline final val EACCES = " EACCES"
You can’t perform that action at this time.
0 commit comments