-
Notifications
You must be signed in to change notification settings - Fork 513
Open
Description
Tests that calling a setter without any arguments should throw a TypeError, which all browsers implement. This might be me missing it - but this does not seem to be specified anywhere.
The getter in question is defined in IDL: https://webassembly.github.io/spec/js-api/#global
IDL attribute setter defines the steps such that undefined should be passed rather than throwing:
1. Let V be undefined.
2. If any arguments were passed, then set V to the value of the first argument passed.
And https://webassembly.github.io/spec/js-api/#dom-global-value does not seem like it should result in a throw in this scenario.
Maybe the getter in the spec needs to be special cased for this scenario?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels