Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed May 8, 2023
1 parent 5578723 commit ba9a5f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build/replacements.mjs
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
@@ -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
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

0 comments on commit ba9a5f5

Please sign in to comment.