Previously, we were comparing the original value with the set of possible enumeration values. This means values like { toString() { "valid-value" } } would not be allowed. Instead, we should check the post-string-conversion value.
Also changes the error messages generated in cases like these, from
The provided value has member type that 'bytes' is not a valid enumeration value for ReadableStreamType
to
The provided value has member 'type' that 'bytes' is not a valid enumeration value for ReadableStreamType
which is slightly better, although still not grammatical.
Previously, we were comparing the original value with the set of possible enumeration values. This means values like { toString() { "valid-value" } } would not be allowed. Instead, we should check the post-string-conversion value.
Also changes the error messages generated in cases like these, from
to
which is slightly better, although still not grammatical.