Skip to content

Commit 0049fa5

Browse files
authored
Update WebIDL to use undefined instead of void (#2427)
* Update WebIDL to use `undefined` instead of `void` * Update weedle to 0.12
1 parent 544bfa3 commit 0049fa5

File tree

220 files changed

+1148
-1141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+1148
-1141
lines changed

crates/web-sys/webidls/enabled/AbortController.webidl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
interface AbortController {
1212
readonly attribute AbortSignal signal;
1313

14-
void abort();
14+
undefined abort();
1515
};

crates/web-sys/webidls/enabled/AnalyserNode.webidl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ dictionary AnalyserOptions : AudioNodeOptions {
2222
interface AnalyserNode : AudioNode {
2323

2424
// Real-time frequency-domain data
25-
void getFloatFrequencyData(Float32Array array);
26-
void getByteFrequencyData(Uint8Array array);
25+
undefined getFloatFrequencyData(Float32Array array);
26+
undefined getByteFrequencyData(Uint8Array array);
2727

2828
// Real-time waveform data
29-
void getFloatTimeDomainData(Float32Array array);
30-
void getByteTimeDomainData(Uint8Array array);
29+
undefined getFloatTimeDomainData(Float32Array array);
30+
undefined getByteTimeDomainData(Uint8Array array);
3131

3232
[SetterThrows, Pure]
3333
attribute unsigned long fftSize;

crates/web-sys/webidls/enabled/Animation.webidl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ interface Animation : EventTarget {
3737
readonly attribute Promise<Animation> finished;
3838
attribute EventHandler onfinish;
3939
attribute EventHandler oncancel;
40-
void cancel ();
40+
undefined cancel ();
4141
[Throws]
42-
void finish ();
42+
undefined finish ();
4343
[Throws, BinaryName="playFromJS"]
44-
void play ();
44+
undefined play ();
4545
[Throws, BinaryName="pauseFromJS"]
46-
void pause ();
47-
void updatePlaybackRate (double playbackRate);
46+
undefined pause ();
47+
undefined updatePlaybackRate (double playbackRate);
4848
[Throws]
49-
void reverse ();
49+
undefined reverse ();
5050
};
5151

5252
// Non-standard extensions

crates/web-sys/webidls/enabled/AnimationEffect.webidl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ interface AnimationEffect {
6161
[BinaryName="getComputedTimingAsDict"]
6262
ComputedEffectTiming getComputedTiming();
6363
[Throws]
64-
void updateTiming(optional OptionalEffectTiming timing);
64+
undefined updateTiming(optional OptionalEffectTiming timing);
6565
};

crates/web-sys/webidls/enabled/AudioBuffer.webidl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface AudioBuffer {
3232
Float32Array getChannelData(unsigned long channel);
3333

3434
[Throws]
35-
void copyFromChannel(Float32Array destination, long channelNumber, optional unsigned long startInChannel = 0);
35+
undefined copyFromChannel(Float32Array destination, long channelNumber, optional unsigned long startInChannel = 0);
3636
[Throws]
37-
void copyToChannel(Float32Array source, long channelNumber, optional unsigned long startInChannel = 0);
37+
undefined copyToChannel(Float32Array source, long channelNumber, optional unsigned long startInChannel = 0);
3838
};

crates/web-sys/webidls/enabled/AudioBufferSourceNode.webidl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ interface AudioBufferSourceNode : AudioScheduledSourceNode {
3535
attribute EventHandler onended;
3636

3737
[Throws]
38-
void start(optional double when = 0, optional double grainOffset = 0,
38+
undefined start(optional double when = 0, optional double grainOffset = 0,
3939
optional double grainDuration);
4040

4141
[Throws]
42-
void stop (optional double when = 0);
42+
undefined stop (optional double when = 0);
4343
};

crates/web-sys/webidls/enabled/AudioContext.webidl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ interface AudioContext : BaseAudioContext {
2222
// Bug 1324545: AudioTimestamp getOutputTimestamp ();
2323

2424
[Throws]
25-
Promise<void> suspend();
25+
Promise<undefined> suspend();
2626
[Throws]
27-
Promise<void> close();
27+
Promise<undefined> close();
2828

2929
[NewObject, Throws]
3030
MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement);

crates/web-sys/webidls/enabled/AudioListener.webidl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ interface AudioListener {
2222
attribute double speedOfSound;
2323

2424
// Uses a 3D cartesian coordinate system
25-
void setPosition(double x, double y, double z);
26-
void setOrientation(double x, double y, double z, double xUp, double yUp, double zUp);
25+
undefined setPosition(double x, double y, double z);
26+
undefined setOrientation(double x, double y, double z, double xUp, double yUp, double zUp);
2727
[Deprecated="PannerNodeDoppler"]
28-
void setVelocity(double x, double y, double z);
28+
undefined setVelocity(double x, double y, double z);
2929

3030
};
3131

crates/web-sys/webidls/enabled/AudioNode.webidl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ interface AudioNode : EventTarget {
3333
[Throws]
3434
AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0);
3535
[Throws]
36-
void connect(AudioParam destination, optional unsigned long output = 0);
36+
undefined connect(AudioParam destination, optional unsigned long output = 0);
3737
[Throws]
38-
void disconnect();
38+
undefined disconnect();
3939
[Throws]
40-
void disconnect(unsigned long output);
40+
undefined disconnect(unsigned long output);
4141
[Throws]
42-
void disconnect(AudioNode destination);
42+
undefined disconnect(AudioNode destination);
4343
[Throws]
44-
void disconnect(AudioNode destination, unsigned long output);
44+
undefined disconnect(AudioNode destination, unsigned long output);
4545
[Throws]
46-
void disconnect(AudioNode destination, unsigned long output, unsigned long input);
46+
undefined disconnect(AudioNode destination, unsigned long output, unsigned long input);
4747
[Throws]
48-
void disconnect(AudioParam destination);
48+
undefined disconnect(AudioParam destination);
4949
[Throws]
50-
void disconnect(AudioParam destination, unsigned long output);
50+
undefined disconnect(AudioParam destination, unsigned long output);
5151

5252
readonly attribute BaseAudioContext context;
5353
readonly attribute unsigned long numberOfInputs;

crates/web-sys/webidls/enabled/AudioScheduledSourceNode.webidl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ AudioScheduledSourceNode includes rustAudioScheduledSourceNode;
1919
interface mixin rustAudioScheduledSourceNode {
2020
attribute EventHandler onended;
2121
[Throws]
22-
void start (optional double when = 0);
22+
undefined start (optional double when = 0);
2323

2424
[Throws]
25-
void stop (optional double when = 0);
25+
undefined stop (optional double when = 0);
2626
};

0 commit comments

Comments
 (0)