notifications icon indicating copy to clipboard operation
notifications copied to clipboard

"Call Object.freeze on action"

Open domenic opened this issue 9 years ago • 3 comments

https://notifications.spec.whatwg.org/#object-members

Call Object.freeze on action, to prevent accidental mutation by scripts.

This should not call the author-overrideable Object.freeze. Instead, call SetIntegrityLevel(action, "frozen").

domenic avatar May 12 '16 15:05 domenic

/cc @johnmellor

beverloo avatar May 12 '16 15:05 beverloo

Which probably does not work due to IDL expecting us to use IDL objects. But I guess we can assume that distinction will be removed.

annevk avatar May 12 '16 17:05 annevk

Meh, maybe throw in a "the JavaScript object corresponding to action"

domenic avatar May 12 '16 17:05 domenic