File tree 2 files changed +5
-2
lines changed
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)=
262
262
| Some comment -> Pt.printl " %s " comment
263
263
| _ -> ()
264
264
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
266
269
match findOverriddenItem p.Name ItemKind.Property i.Name with
267
270
| Some p' -> emitPropertyFromJson p'
268
271
| None ->
Original file line number Diff line number Diff line change @@ -14305,7 +14305,7 @@ declare var location: Location;
14305
14305
declare var locationbar: BarProp;
14306
14306
declare var menubar: BarProp;
14307
14307
declare var msCredentials: MSCredentials;
14308
- declare var name: string ;
14308
+ declare const name: never ;
14309
14309
declare var navigator: Navigator;
14310
14310
declare var offscreenBuffering: string | boolean;
14311
14311
declare var onabort: (this: Window, ev: UIEvent) => any;
You can’t perform that action at this time.
0 commit comments