File tree 1 file changed +5
-0
lines changed
Tests/JavaScriptEventLoopTests
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,10 @@ final class WebWorkerTaskExecutorTests: XCTestCase {
318
318
XCTAssertTrue ( jsErrorMessage. contains ( " Failed to serialize message " ) , jsErrorMessage)
319
319
}
320
320
321
+ /*
322
+ // Node.js 20 and below doesn't throw exception when transferring the same ArrayBuffer
323
+ // multiple times.
324
+ // See https://github.com/nodejs/node/commit/38dee8a1c04237bd231a01410f42e9d172f4c162
321
325
func testTransferMultipleTimes() async throws {
322
326
let executor = try await WebWorkerTaskExecutor(numberOfThreads: 1)
323
327
let Uint8Array = JSObject.global.Uint8Array.function!
@@ -344,6 +348,7 @@ final class WebWorkerTaskExecutorTests: XCTestCase {
344
348
}
345
349
XCTAssertTrue(jsErrorMessage.contains("Failed to serialize message"))
346
350
}
351
+ */
347
352
348
353
func testCloneMultipleTimes( ) async throws {
349
354
let executor = try await WebWorkerTaskExecutor ( numberOfThreads: 1 )
You can’t perform that action at this time.
0 commit comments