From 837ec9eeaee72070e8b2f8a613ffd0daf0948830 Mon Sep 17 00:00:00 2001 From: Nate Buckareff <39683307+natebuckareff@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:21:20 -0800 Subject: [PATCH] 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. --- build/replacements.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/replacements.mjs b/build/replacements.mjs index 5d4e5c841..2b69d27cf 100644 --- a/build/replacements.mjs +++ b/build/replacements.mjs @@ -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 = [