We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This note in [[DefineOwnProperty]] caused confusion during code view:
[[DefineOwnProperty]]
NOTE: Attempting to redefine an immutable value always fails, even if the new value would be cast to the current value.
Maybe just inline ValidateAndApplyPropertyDescriptor and replace https://tc39.es/proposal-immutable-arraybuffer/#sec-typedarray-defineownproperty, steps 1.b.ii-viii with:
ValidateAndApplyPropertyDescriptor
Let mutable be true. If IsImmutableBuffer(O.[[ViewedArrayBuffer]]) is true, set mutable to false. If Desc has a [[Configurable]] field and Desc.[[Configurable]] is not mutable, return false. If Desc has an [[Enumerable]] field and Desc.[[Enumerable]] is false, return false. If IsAccessorDescriptor(Desc) is true, return false. If Desc has a [[Writable]] field and Desc.[[Writable]] is not mutable, return false. If Desc has a [[Value]] field, then If mutable is false, then Let current be TypedArrayGetElement(O, numericIndex). Assert: current is not undefined. Return SameValue(Desc.[[Value]], current). Perform ? TypedArraySetElement(O, numericIndex, Desc.[[Value]]). Return true.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This note in
[[DefineOwnProperty]]
caused confusion during code view:Maybe just inline
ValidateAndApplyPropertyDescriptor
and replace https://tc39.es/proposal-immutable-arraybuffer/#sec-typedarray-defineownproperty, steps 1.b.ii-viii with:The text was updated successfully, but these errors were encountered: