Skip to content

Commit

Permalink
Fix internalStreamsWeakHandler replacement (#544)
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 authored Dec 18, 2024
1 parent a2e9aed commit 837ec9e
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 837ec9e

Please sign in to comment.