Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized type "Function" in my idlharness tests #23329

Closed
domenic opened this issue Apr 29, 2020 · 1 comment · Fixed by #23399
Closed

Unrecognized type "Function" in my idlharness tests #23329

domenic opened this issue Apr 29, 2020 · 1 comment · Fixed by #23399

Comments

@domenic
Copy link
Member

domenic commented Apr 29, 2020

In #22982, I have the IDL

[Exposed=(Window,Worker,Worklet)]
interface CountQueuingStrategy {
  constructor(QueuingStrategyInit init);

  attribute unrestricted double highWaterMark;
  readonly attribute Function size;
};

but idlharness gives me

CountQueuingStrategy interface: new CountQueuingStrategy({ highWaterMark: 5 }) must inherit property "size" with the proper type Unrecognized type Function

errors. Function is built in to Web IDL. How do I get idlharness to recognize it?

@stephenmcgruer
Copy link
Contributor

Looks like this comes from IdlArray.prototype.assert_type_is - Function might not be in the big list of accepted types there. (I don't see it offhand). I can get to this sometime in the next week, or PRs welcome (though idlharness is quite intimidating, at least to me!)

@stephenmcgruer stephenmcgruer self-assigned this May 4, 2020
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue May 15, 2020
…ssert_type_is, a=testonly

Automatic update from web-platform-tests
Support Function in IdlArray.prototype.assert_type_is (#23399)

Closes web-platform-tests/wpt#23329
--

wpt-commits: 550e0b3aee12752968f5a1204a6cf37f2bd5d83b
wpt-pr: 23399
xeonchen pushed a commit to xeonchen/gecko that referenced this issue May 15, 2020
…ssert_type_is, a=testonly

Automatic update from web-platform-tests
Support Function in IdlArray.prototype.assert_type_is (#23399)

Closes web-platform-tests/wpt#23329
--

wpt-commits: 550e0b3aee12752968f5a1204a6cf37f2bd5d83b
wpt-pr: 23399
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue May 20, 2020
…ssert_type_is, a=testonly

Automatic update from web-platform-tests
Support Function in IdlArray.prototype.assert_type_is (#23399)

Closes web-platform-tests/wpt#23329
--

wpt-commits: 550e0b3aee12752968f5a1204a6cf37f2bd5d83b
wpt-pr: 23399
xeonchen pushed a commit to xeonchen/gecko that referenced this issue May 20, 2020
…ssert_type_is, a=testonly

Automatic update from web-platform-tests
Support Function in IdlArray.prototype.assert_type_is (#23399)

Closes web-platform-tests/wpt#23329
--

wpt-commits: 550e0b3aee12752968f5a1204a6cf37f2bd5d83b
wpt-pr: 23399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants