Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed May 8, 2023
commit ba9a5f531d2eaf8dc4f5811ecb80458f2724652c
16 changes: 14 additions & 2 deletions build/replacements.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ const internalStreamsAbortControllerPolyfill = [
`
]

const internalStreamsAbortControllerPolyfill2 = [
"'use strict'",
`
'use strict'

const AbortController = globalThis.AbortController || require(\'abort-controller\').AbortController;

`
]

const internalStreamsNoRequireBlob = [
"const \\{\\n isBlob,\\n\\} = require\\('internal/blob'\\);",
`
Expand Down Expand Up @@ -304,10 +314,12 @@ export const replacements = {
testParallelTickSaveHook
],
'test/parallel/test-stream3-pipeline-async-iterator.js': [
internalStreamsNoRequireAbortController,
internalStreamsAbortControllerPolyfill2,
streamSlashPromisesToStreamDotPromises
],
'test/parallel/test-stream-compose-operator.js': [internalStreamsNoRequireAbortController],
'test/parallel/test-stream-compose-operator.js': [
internalStreamsAbortControllerPolyfill2
],
'test/parallel/test-stream2-readable-from-list.js': [testParallelReadableBufferListInspect],
'README.md': [readmeInfo, readmeLink]
}
1 change: 1 addition & 0 deletions test/parallel/test-stream-compose-operator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

const AbortController = globalThis.AbortController || require('abort-controller').AbortController
const tap = require('tap')
const silentConsole = {
log() {},
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-stream3-pipeline-async-iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

'use strict'

const AbortController = globalThis.AbortController || require('abort-controller').AbortController
const tap = require('tap')
const silentConsole = {
log() {},
Expand Down