Skip to content

Commit 86dbd14

Browse files
committed
Fix special handling of Window.name
1 parent 7ad6ef7 commit 86dbd14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/emitter.ts

+1-1
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.InstanceOnly
806+
prefix === "declare var "
807807
) {
808808
printer.printLine("/** @deprecated */");
809809
printer.printLine("declare const name: void;");

0 commit comments

Comments
 (0)