Skip to content

Commit 5d7f5e2

Browse files
committed
Don't use destructuring with addRaw()
This benefits from the identifier clash checking that's in addRaw.
1 parent 6ff65fd commit 5d7f5e2

File tree

2 files changed

+126
-63
lines changed

2 files changed

+126
-63
lines changed

lib/constructs/interface.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ class Interface {
492492
}
493493

494494
generateRequires() {
495-
this.requires.addRaw(`{ implSymbol, ctorRegistrySymbol }`, "utils");
495+
this.requires.addRaw("implSymbol", "utils.implSymbol");
496+
this.requires.addRaw("ctorRegistrySymbol", "utils.ctorRegistrySymbol");
496497

497498
if (this.idl.inheritance !== null) {
498499
this.requires.addRelative(this.idl.inheritance);

0 commit comments

Comments
 (0)