3 years, 10 months ago
(2017-01-26 17:22:41 UTC)
#2
PTAL
haraken
V8TypeError is a JS error defined in Web IDL to handle exceptions that happen in ...
3 years, 10 months ago
(2017-01-26 18:01:53 UTC)
#3
V8TypeError is a JS error defined in Web IDL to handle exceptions that happen in
the binding layer. You're expected to use a DOM exception for exceptions that
happen in DOM operations.
What does the WebAudio spec say about it?
Raymond Toy
On 2017/01/26 18:01:53, haraken wrote: > V8TypeError is a JS error defined in Web IDL ...
3 years, 10 months ago
(2017-01-26 18:11:58 UTC)
#4
On 2017/01/26 18:01:53, haraken wrote:
> V8TypeError is a JS error defined in Web IDL to handle exceptions that happen
in
> the binding layer. You're expected to use a DOM exception for exceptions that
> happen in DOM operations.
>
> What does the WebAudio spec say about it?
The spec for setValueAtTime
(https://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueAtTime-Audi...)
for example, says setting the startTime to a non-positive or non-finite value
throws a TypeError.
The spec could be wrong.
hongchan
On 2017/01/26 18:11:58, Raymond Toy wrote: > On 2017/01/26 18:01:53, haraken wrote: > > V8TypeError ...
3 years, 10 months ago
(2017-01-26 22:38:43 UTC)
#5
On 2017/01/26 18:11:58, Raymond Toy wrote:
> On 2017/01/26 18:01:53, haraken wrote:
> > V8TypeError is a JS error defined in Web IDL to handle exceptions that
happen
> in
> > the binding layer. You're expected to use a DOM exception for exceptions
that
> > happen in DOM operations.
> >
> > What does the WebAudio spec say about it?
>
> The spec for setValueAtTime
>
(https://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueAtTime-Audi...)
> for example, says setting the startTime to a non-positive or non-finite value
> throws a TypeError.
>
> The spec could be wrong.
Should we hold this CL until we clarify that?
hongchan
On 2017/01/26 22:38:43, hongchan wrote: > On 2017/01/26 18:11:58, Raymond Toy wrote: > > On ...
3 years, 9 months ago
(2017-03-24 15:41:19 UTC)
#6
On 2017/01/26 22:38:43, hongchan wrote:
> On 2017/01/26 18:11:58, Raymond Toy wrote:
> > On 2017/01/26 18:01:53, haraken wrote:
> > > V8TypeError is a JS error defined in Web IDL to handle exceptions that
> happen
> > in
> > > the binding layer. You're expected to use a DOM exception for exceptions
> that
> > > happen in DOM operations.
> > >
> > > What does the WebAudio spec say about it?
> >
> > The spec for setValueAtTime
> >
>
(https://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueAtTime-Audi...)
> > for example, says setting the startTime to a non-positive or non-finite
value
> > throws a TypeError.
> >
> > The spec could be wrong.
>
> Should we hold this CL until we clarify that?
Just for the reference:
https://github.com/WebAudio/web-audio-api/issues/1166
Raymond Toy
Description was changed from ========== Throw TypeError instead of InvalidAccessError for invalid times Automation methods ...
3 years, 6 months ago
(2017-05-26 16:19:03 UTC)
#7
Description was changed from
==========
Throw TypeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a TypeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
BUG=685657
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
==========
to
==========
Throw RangeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a RangeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
BUG=685657
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
==========
Raymond Toy
On 2017/03/24 15:41:19, hongchan wrote: > On 2017/01/26 22:38:43, hongchan wrote: > > On 2017/01/26 ...
3 years, 6 months ago
(2017-05-26 16:20:49 UTC)
#8
On 2017/03/24 15:41:19, hongchan wrote:
> On 2017/01/26 22:38:43, hongchan wrote:
> > On 2017/01/26 18:11:58, Raymond Toy wrote:
> > > On 2017/01/26 18:01:53, haraken wrote:
> > > > V8TypeError is a JS error defined in Web IDL to handle exceptions that
> > happen
> > > in
> > > > the binding layer. You're expected to use a DOM exception for exceptions
> > that
> > > > happen in DOM operations.
> > > >
> > > > What does the WebAudio spec say about it?
> > >
> > > The spec for setValueAtTime
> > >
> >
>
(https://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueAtTime-Audi...)
> > > for example, says setting the startTime to a non-positive or non-finite
> value
> > > throws a TypeError.
> > >
> > > The spec could be wrong.
> >
> > Should we hold this CL until we clarify that?
>
> Just for the reference:
> https://github.com/WebAudio/web-audio-api/issues/1166
This issue has been resolved and the corresponding pull request has landed.
We should throw a RangeError for these cases.
PTAL.
hongchan
lgtm
3 years, 6 months ago
(2017-05-26 20:48:13 UTC)
#9
lgtm
Raymond Toy
On 2017/05/26 16:20:49, Raymond Toy wrote: > On 2017/03/24 15:41:19, hongchan wrote: > > On ...
3 years, 6 months ago
(2017-05-26 20:48:18 UTC)
#10
On 2017/05/26 16:20:49, Raymond Toy wrote:
> On 2017/03/24 15:41:19, hongchan wrote:
> > On 2017/01/26 22:38:43, hongchan wrote:
> > > On 2017/01/26 18:11:58, Raymond Toy wrote:
> > > > On 2017/01/26 18:01:53, haraken wrote:
> > > > > V8TypeError is a JS error defined in Web IDL to handle exceptions that
> > > happen
> > > > in
> > > > > the binding layer. You're expected to use a DOM exception for
exceptions
> > > that
> > > > > happen in DOM operations.
> > > > >
> > > > > What does the WebAudio spec say about it?
> > > >
> > > > The spec for setValueAtTime
> > > >
> > >
> >
>
(https://webaudio.github.io/web-audio-api/#widl-AudioParam-setValueAtTime-Audi...)
> > > > for example, says setting the startTime to a non-positive or non-finite
> > value
> > > > throws a TypeError.
> > > >
> > > > The spec could be wrong.
> > >
> > > Should we hold this CL until we clarify that?
> >
> > Just for the reference:
> > https://github.com/WebAudio/web-audio-api/issues/1166
>
> This issue has been resolved and the corresponding pull request has landed.
> We should throw a RangeError for these cases.
>
> PTAL.
Please hold off. I think I should use ThrowRangeError method to signal the
error, and there needs to be some additional tests added. The tests we have
check that errors are thrown but doesn't check the actual error type.
Raymond Toy
PTAL. ThrowRangeError is used now and tests updated to check for the exception type.
3 years, 6 months ago
(2017-05-30 17:56:37 UTC)
#11
PTAL. ThrowRangeError is used now and tests updated to check for the exception
type.
Raymond Toy
Description was changed from ========== Throw RangeError instead of InvalidAccessError for invalid times Automation methods ...
3 years, 6 months ago
(2017-05-30 18:15:10 UTC)
#12
Description was changed from
==========
Throw RangeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a RangeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
BUG=685657
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
==========
to
==========
Throw RangeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a RangeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
BUG=685657, 726793
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
==========
Raymond Toy
Ping
3 years, 6 months ago
(2017-06-06 16:27:19 UTC)
#13
Ping
hongchan
On 2017/06/06 16:27:19, Raymond Toy wrote: > Ping Sorry that I missed this one - ...
3 years, 6 months ago
(2017-06-06 16:34:21 UTC)
#14
On 2017/06/06 16:27:19, Raymond Toy wrote:
> Ping
Sorry that I missed this one - lgtm again with nit.
Description was changed from ========== Throw RangeError instead of InvalidAccessError for invalid times Automation methods ...
3 years, 6 months ago
(2017-06-07 20:08:10 UTC)
#17
Description was changed from
==========
Throw RangeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a RangeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
BUG=685657, 726793
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
==========
to
==========
Throw RangeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a RangeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
See spec issue: https://github.com/WebAudio/web-audio-api/issues/1182
BUG=685657, 726793
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
==========
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
3 years, 6 months ago
(2017-06-07 20:09:11 UTC)
#18
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/195246) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 6 months ago
(2017-06-07 21:10:23 UTC)
#22
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1496875442378960, "parent_rev": "7d2c2483af8243eab43b70e24cc30bd6f61b3714", "commit_rev": "36682d2fd06777d9dd371416fff959aefa36c14a"}
3 years, 6 months ago
(2017-06-07 23:55:20 UTC)
#25
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1496875442378960,
"parent_rev": "7d2c2483af8243eab43b70e24cc30bd6f61b3714", "commit_rev":
"36682d2fd06777d9dd371416fff959aefa36c14a"}
commit-bot: I haz the power
Description was changed from ========== Throw RangeError instead of InvalidAccessError for invalid times Automation methods ...
3 years, 6 months ago
(2017-06-07 23:55:33 UTC)
#26
Message was sent while issue was closed.
Description was changed from
==========
Throw RangeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a RangeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
See spec issue: https://github.com/WebAudio/web-audio-api/issues/1182
BUG=685657, 726793
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
==========
to
==========
Throw RangeError instead of InvalidAccessError for invalid times
Automation methods are supposed to throw a RangeError if the start time
or time constant are invalid. Currently they throw
InvalidAccessError.
See spec issue: https://github.com/WebAudio/web-audio-api/issues/1182
BUG=685657, 726793
TEST=dom-exceptions.html,
AudioParam/audioparam-exceptional-values.html,
AudioParam/audioparam-method-channing.html
Review-Url: https://codereview.chromium.org/2656993002
Cr-Commit-Position: refs/heads/master@{#477812}
Committed:
https://chromium.googlesource.com/chromium/src/+/36682d2fd06777d9dd371416fff9...
==========
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/36682d2fd06777d9dd371416fff959aefa36c14a
3 years, 6 months ago
(2017-06-07 23:55:36 UTC)
#27
Issue 2656993002: Throw TypeError instead of InvalidAccessError for invalid times
(Closed)
Created 3 years, 10 months ago by Raymond Toy
Modified 3 years, 6 months ago
Reviewers: hongchan
Base URL:
Comments: 6