Skip to content

Commit

Permalink
Fix internalStreamsWeakHandler replacement
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
natebuckareff committed Nov 30, 2024
1 parent a2e9aed commit 799acb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/replacements.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const internalStreamsRequireWebStream = ["require\\('internal/webstreams/adapter

const internalStreamsWeakHandler = [
"const \\{ kWeakHandler \\} = require\\('../event_target'\\);",
"require\\('../event_target'\\);const kWeakHandler = require('../../ours/primordials').Symbol('kWeak');"
"require('../event_target');const kWeakHandler = require('../../ours/primordials').Symbol('kWeak');"
]

const internalStreamsWeakHandler2 = [
Expand Down

0 comments on commit 799acb1

Please sign in to comment.