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

Commit db1e9fa

Browse files
committed
Fix for Scala 2.12
1 parent 44a00f0 commit db1e9fa

File tree

1 file changed

+18
-20
lines changed
  • app/nodejs-v14/src/main/scala/io/scalajs/nodejs/console_module

1 file changed

+18
-20
lines changed

app/nodejs-v14/src/main/scala/io/scalajs/nodejs/console_module/Console.scala

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ class Console protected () extends js.Object {
7878
/**
7979
* The `console.debug()` function is an alias for `console.log()`.
8080
*/
81-
def debug(data: Any, args: Any*): Unit = js.native
82-
def debug(data: Any): Unit = js.native
83-
def debug(): Unit = js.native
81+
def debug(data: Any, arg1: Any, args: Any*): Unit = js.native
82+
def debug(data: Any): Unit = js.native
83+
def debug(): Unit = js.native
8484

8585
/**
8686
* Uses [[io.scalajs.nodejs.util.Util.inspect()]] on `obj` and prints the resulting string to `stdout`.
@@ -103,12 +103,10 @@ class Console protected () extends js.Object {
103103
* If formatting elements (e.g. `%d`) are not found in the first string then[[io.scalajs.nodejs.util.Util.inspect()]]
104104
* is called on each argument and the resulting string values are concatenated. See [[io.scalajs.nodejs.util.Util.format()]]
105105
* for more information.
106-
*
107-
* @param args
108106
*/
109-
def error(data: Any, args: Any*): Unit = js.native
110-
def error(data: Any): Unit = js.native
111-
def error(): Unit = js.native
107+
def error(data: Any, arg1: Any, args: Any*): Unit = js.native
108+
def error(data: Any): Unit = js.native
109+
def error(): Unit = js.native
112110

113111
/**
114112
* Increases indentation of subsequent lines by two spaces.
@@ -133,18 +131,18 @@ class Console protected () extends js.Object {
133131
/**
134132
* The `console.info()` function is an alias for [[log()]].
135133
*/
136-
def info(data: Any, args: Any*): Unit = js.native
137-
def info(data: Any): Unit = js.native
138-
def info(): Unit = js.native
134+
def info(data: Any, arg1: Any, args: Any*): Unit = js.native
135+
def info(data: Any): Unit = js.native
136+
def info(): Unit = js.native
139137

140138
/**
141139
* Prints to `stdout` with newline.
142140
* Multiple arguments can be passed, with the first used as the primary message and all additional used as
143141
* substitution values similar to `printf(3)` (the arguments are all passed to `util.format()`).
144142
*/
145-
def log(data: Any, args: Any*): Unit = js.native
146-
def log(data: Any): Unit = js.native
147-
def log(): Unit = js.native
143+
def log(data: Any, arg1: Any, args: Any*): Unit = js.native
144+
def log(data: Any): Unit = js.native
145+
def log(): Unit = js.native
148146

149147
/**
150148
* Try to construct a table with the columns of the properties of `tabularData` (or use `properties`) and
@@ -181,16 +179,16 @@ class Console protected () extends js.Object {
181179
* Prints to `stderr` the string `'Trace: '`, followed by the [[io.scalajs.nodejs.util.Util.format()]] formatted
182180
* message and stack trace to the current position in the code.
183181
*/
184-
def trace(data: Any, args: Any*): Unit = js.native
185-
def trace(data: Any): Unit = js.native
186-
def trace(): Unit = js.native
182+
def trace(data: Any, arg1: Any, args: Any*): Unit = js.native
183+
def trace(data: Any): Unit = js.native
184+
def trace(): Unit = js.native
187185

188186
/**
189187
* The `console.warn()` function is an alias for [[error()]
190188
*/
191-
def warn(data: Any, args: Any*): Unit = js.native
192-
def warn(data: Any): Unit = js.native
193-
def warn(): Unit = js.native
189+
def warn(data: Any, arg1: Any, args: Any*): Unit = js.native
190+
def warn(data: Any): Unit = js.native
191+
def warn(): Unit = js.native
194192

195193
/**
196194
* This method does not display anything unless used in the inspector.

0 commit comments

Comments
 (0)