We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
has
Code:
const adapter = await navigator.gpu.requestAdapter(); const device = await adapter?.requestDevice(); console.log(device.features.has('timestamp-query'));
Output:
error: Uncaught (in promise) TypeError: device.features.has is not a function console.log(device.features.has('timestamp-query'));
Expected output: True or False
Due to WebGPU spec and webidl spec, device.features is a setlike Object and should includes has method, but there is not.
device.features
The text was updated successfully, but these errors were encountered:
Gently ping @crowlKats from #7977, is the current array implementation intentional?
Sorry, something went wrong.
No, this seems to be something that was missed in the implementation
Successfully merging a pull request may close this issue.
Code:
Output:
Expected output:
True or False
Due to WebGPU spec and webidl spec,
device.features
is a setlike Object and should includeshas
method, but there is not.The text was updated successfully, but these errors were encountered: