This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21246 - Consider testing that extra arguments beyond the longest overload should be ignored
Summary: Consider testing that extra arguments beyond the longest overload should be i...
Status: NEW
Alias: None
Product: Testing
Classification: Unclassified
Component: testharness.js (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: James Graham
QA Contact: James Graham
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 08:47 UTC by Ms2ger
Modified: 2013-03-11 08:47 UTC (History)
1 user (show)

See Also:


Attachments

Description Ms2ger 2013-03-11 08:47:33 UTC
For example:

  var throwingObject = {
    toString: function() { throw Error() },
    valueOf: function() { throw Error() }
  };
  new Audio("", throwingObject);

One annoying part is that idlharness.js can't test that the function doesn't throw, because the native implementation could always throw.