Skip to content

Commit 7704232

Browse files
ortasaschanaz
andauthored
Remove the readonly attribute on all prototype (#109)
* Remove the readonly attribute on all prototype * Better comment for the readonly prototype change Co-authored-by: Kagami Sascha Rosylight <[email protected]>
1 parent 850b7eb commit 7704232

File tree

6 files changed

+964
-961
lines changed

6 files changed

+964
-961
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ interface AudioWorkletGlobalScope extends WorkletGlobalScope {
119119
}
120120

121121
declare var AudioWorkletGlobalScope: {
122-
readonly prototype: AudioWorkletGlobalScope;
122+
prototype: AudioWorkletGlobalScope;
123123
new(): AudioWorkletGlobalScope;
124124
};
125125

@@ -128,7 +128,7 @@ interface AudioWorkletProcessor {
128128
}
129129

130130
declare var AudioWorkletProcessor: {
131-
readonly prototype: AudioWorkletProcessor;
131+
prototype: AudioWorkletProcessor;
132132
new(): AudioWorkletProcessor;
133133
};
134134

@@ -139,7 +139,7 @@ interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
139139
}
140140

141141
declare var ByteLengthQueuingStrategy: {
142-
readonly prototype: ByteLengthQueuingStrategy;
142+
prototype: ByteLengthQueuingStrategy;
143143
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
144144
};
145145

@@ -150,7 +150,7 @@ interface CountQueuingStrategy extends QueuingStrategy {
150150
}
151151

152152
declare var CountQueuingStrategy: {
153-
readonly prototype: CountQueuingStrategy;
153+
prototype: CountQueuingStrategy;
154154
new(init: QueuingStrategyInit): CountQueuingStrategy;
155155
};
156156

@@ -226,7 +226,7 @@ interface Event {
226226
}
227227

228228
declare var Event: {
229-
readonly prototype: Event;
229+
prototype: Event;
230230
new(type: string, eventInitDict?: EventInit): Event;
231231
readonly AT_TARGET: number;
232232
readonly BUBBLING_PHASE: number;
@@ -263,7 +263,7 @@ interface EventTarget {
263263
}
264264

265265
declare var EventTarget: {
266-
readonly prototype: EventTarget;
266+
prototype: EventTarget;
267267
new(): EventTarget;
268268
};
269269

@@ -294,7 +294,7 @@ interface MessageEvent<T = any> extends Event {
294294
}
295295

296296
declare var MessageEvent: {
297-
readonly prototype: MessageEvent;
297+
prototype: MessageEvent;
298298
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
299299
};
300300

@@ -329,7 +329,7 @@ interface MessagePort extends EventTarget {
329329
}
330330

331331
declare var MessagePort: {
332-
readonly prototype: MessagePort;
332+
prototype: MessagePort;
333333
new(): MessagePort;
334334
};
335335

@@ -345,7 +345,7 @@ interface ReadableStream<R = any> {
345345
}
346346

347347
declare var ReadableStream: {
348-
readonly prototype: ReadableStream;
348+
prototype: ReadableStream;
349349
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
350350
};
351351

@@ -357,7 +357,7 @@ interface ReadableStreamDefaultController<R = any> {
357357
}
358358

359359
declare var ReadableStreamDefaultController: {
360-
readonly prototype: ReadableStreamDefaultController;
360+
prototype: ReadableStreamDefaultController;
361361
new(): ReadableStreamDefaultController;
362362
};
363363

@@ -367,7 +367,7 @@ interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericRead
367367
}
368368

369369
declare var ReadableStreamDefaultReader: {
370-
readonly prototype: ReadableStreamDefaultReader;
370+
prototype: ReadableStreamDefaultReader;
371371
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
372372
};
373373

@@ -382,7 +382,7 @@ interface TransformStream<I = any, O = any> {
382382
}
383383

384384
declare var TransformStream: {
385-
readonly prototype: TransformStream;
385+
prototype: TransformStream;
386386
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
387387
};
388388

@@ -394,15 +394,15 @@ interface TransformStreamDefaultController<O = any> {
394394
}
395395

396396
declare var TransformStreamDefaultController: {
397-
readonly prototype: TransformStreamDefaultController;
397+
prototype: TransformStreamDefaultController;
398398
new(): TransformStreamDefaultController;
399399
};
400400

401401
interface WorkletGlobalScope {
402402
}
403403

404404
declare var WorkletGlobalScope: {
405-
readonly prototype: WorkletGlobalScope;
405+
prototype: WorkletGlobalScope;
406406
new(): WorkletGlobalScope;
407407
};
408408

@@ -415,7 +415,7 @@ interface WritableStream<W = any> {
415415
}
416416

417417
declare var WritableStream: {
418-
readonly prototype: WritableStream;
418+
prototype: WritableStream;
419419
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
420420
};
421421

@@ -425,7 +425,7 @@ interface WritableStreamDefaultController {
425425
}
426426

427427
declare var WritableStreamDefaultController: {
428-
readonly prototype: WritableStreamDefaultController;
428+
prototype: WritableStreamDefaultController;
429429
new(): WritableStreamDefaultController;
430430
};
431431

@@ -441,7 +441,7 @@ interface WritableStreamDefaultWriter<W = any> {
441441
}
442442

443443
declare var WritableStreamDefaultWriter: {
444-
readonly prototype: WritableStreamDefaultWriter;
444+
prototype: WritableStreamDefaultWriter;
445445
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
446446
};
447447

@@ -475,7 +475,7 @@ declare namespace WebAssembly {
475475
}
476476

477477
var CompileError: {
478-
readonly prototype: CompileError;
478+
prototype: CompileError;
479479
new(): CompileError;
480480
};
481481

@@ -485,7 +485,7 @@ declare namespace WebAssembly {
485485
}
486486

487487
var Global: {
488-
readonly prototype: Global;
488+
prototype: Global;
489489
new(descriptor: GlobalDescriptor, v?: any): Global;
490490
};
491491

@@ -494,15 +494,15 @@ declare namespace WebAssembly {
494494
}
495495

496496
var Instance: {
497-
readonly prototype: Instance;
497+
prototype: Instance;
498498
new(module: Module, importObject?: Imports): Instance;
499499
};
500500

501501
interface LinkError extends Error {
502502
}
503503

504504
var LinkError: {
505-
readonly prototype: LinkError;
505+
prototype: LinkError;
506506
new(): LinkError;
507507
};
508508

@@ -512,15 +512,15 @@ declare namespace WebAssembly {
512512
}
513513

514514
var Memory: {
515-
readonly prototype: Memory;
515+
prototype: Memory;
516516
new(descriptor: MemoryDescriptor): Memory;
517517
};
518518

519519
interface Module {
520520
}
521521

522522
var Module: {
523-
readonly prototype: Module;
523+
prototype: Module;
524524
new(bytes: BufferSource): Module;
525525
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
526526
exports(moduleObject: Module): ModuleExportDescriptor[];
@@ -531,7 +531,7 @@ declare namespace WebAssembly {
531531
}
532532

533533
var RuntimeError: {
534-
readonly prototype: RuntimeError;
534+
prototype: RuntimeError;
535535
new(): RuntimeError;
536536
};
537537

@@ -543,7 +543,7 @@ declare namespace WebAssembly {
543543
}
544544

545545
var Table: {
546-
readonly prototype: Table;
546+
prototype: Table;
547547
new(descriptor: TableDescriptor, value?: any): Table;
548548
};
549549

0 commit comments

Comments
 (0)