Skip to content

Commit 837ec9e

Browse files
Fix internalStreamsWeakHandler replacement (#544)
The replacement part of the rule incorrectly contains the escape `\\`, probably copy-pasted from the pattern part of the rule. Fix is to just remove it.
1 parent a2e9aed commit 837ec9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/replacements.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const internalStreamsRequireWebStream = ["require\\('internal/webstreams/adapter
8181

8282
const internalStreamsWeakHandler = [
8383
"const \\{ kWeakHandler \\} = require\\('../event_target'\\);",
84-
"require\\('../event_target'\\);const kWeakHandler = require('../../ours/primordials').Symbol('kWeak');"
84+
"require('../event_target');const kWeakHandler = require('../../ours/primordials').Symbol('kWeak');"
8585
]
8686

8787
const internalStreamsWeakHandler2 = [

0 commit comments

Comments
 (0)