Skip to content

Commit 3b45457

Browse files
authored
Fix special handling of Window.name in emitter.ts
1 parent 86792c1 commit 3b45457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ export function emitWebIdl(
803803
if (
804804
p.name === "name" &&
805805
i.name === "Window" &&
806-
emitScope === EmitScope.All
806+
emitScope === EmitScope.InstanceOnly
807807
) {
808808
printer.printLine("/** @deprecated */");
809809
printer.printLine("declare const name: void;");

0 commit comments

Comments
 (0)