File tree 2 files changed +13
-2
lines changed
nodejs-env/src/main/scala/org/scalajs/jsenv/nodejs
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,24 @@ jobs:
12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
+ nodejsversion : ["15"]
15
16
scalaversion : ["2.11.12", "2.12.11", "2.13.2"]
16
17
project : ["scalajs-js-envs", "scalajs-js-envs-test-kit", "scalajs-env-nodejs"]
18
+ include :
19
+ - nodejsversion : " 16"
20
+ scalaversion : " 2.12.11"
21
+ project : " scalajs-env-nodejs"
22
+ - nodejsversion : " 17"
23
+ scalaversion : " 2.12.11"
24
+ project : " scalajs-env-nodejs"
17
25
steps :
18
26
- uses : actions/checkout@v2
19
27
- uses : olafurpg/setup-scala@v10
20
28
with :
21
29
30
+ - uses : actions/setup-node@v2
31
+ with :
32
+ node-version : " ${{ matrix.nodejsversion }}"
22
33
- uses : coursier/cache-action@v5
23
34
- name : Test
24
35
run : sbt "++${{ matrix.scalaversion }}" ${{ matrix.project }}/test
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ object ComRun {
209
209
def start (config : RunConfig , onMessage : String => Unit )(startRun : Path => JSRun ): JSComRun = {
210
210
try {
211
211
val serverSocket =
212
- new ServerSocket (0 , 0 , InetAddress .getByName(null )) // Loopback address
212
+ new ServerSocket (0 , 0 , InetAddress .getByName(" 127.0.0.1 " )) // IPv4 loopback address
213
213
214
214
val run = startRun(setupFile(serverSocket.getLocalPort))
215
215
@@ -248,7 +248,7 @@ object ComRun {
248
248
s """
249
249
|(function() {
250
250
| // The socket for communication
251
- | var socket = require('net').connect( $port);
251
+ | var socket = require('net').connect( $port, '127.0.0.1'); // IPv4 loopback address
252
252
|
253
253
| // Buffers received data
254
254
| var inBuffer = Buffer.alloc(0);
You can’t perform that action at this time.
0 commit comments