whatwg / notifications

Notifications API Standard
https://notifications.spec.whatwg.org/
Other
139 stars 49 forks source link

"Call Object.freeze on action" #74

Open domenic opened 8 years ago

domenic commented 8 years ago

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").

beverloo commented 8 years ago

/cc @johnmellor

annevk commented 8 years ago

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.

domenic commented 8 years ago

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