File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,10 @@ let EmitProperties flavor prefix (emitScope: EmitScope) (i: Browser.Interface)=
262262 | Some comment -> Pt.printl " %s " comment
263263 | _ -> ()
264264
265- if Option.isNone ( findRemovedItem p.Name ItemKind.Property i.Name) then
265+ // Treat window.name specially because of https://github.com/Microsoft/TypeScript/issues/9850
266+ if p.Name = " name" && i.Name = " Window" && emitScope = EmitScope.All then
267+ Pt.printl " declare const name: never;"
268+ elif Option.isNone ( findRemovedItem p.Name ItemKind.Property i.Name) then
266269 match findOverriddenItem p.Name ItemKind.Property i.Name with
267270 | Some p' -> emitPropertyFromJson p'
268271 | None ->
Original file line number Diff line number Diff line change @@ -14305,7 +14305,7 @@ declare var location: Location;
1430514305declare var locationbar: BarProp;
1430614306declare var menubar: BarProp;
1430714307declare var msCredentials: MSCredentials;
14308- declare var name: string ;
14308+ declare const name: never ;
1430914309declare var navigator: Navigator;
1431014310declare var offscreenBuffering: string | boolean;
1431114311declare var onabort: (this: Window, ev: UIEvent) => any;
You can’t perform that action at this time.
0 commit comments