Skip to content
New issue

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

notification.actions returns a new object each time #131

Open
jakearchibald opened this issue May 17, 2018 · 1 comment
Open

notification.actions returns a new object each time #131

jakearchibald opened this issue May 17, 2018 · 1 comment

Comments

@jakearchibald
Copy link
Contributor

https://notifications.spec.whatwg.org/#dom-notification-actions

This means:

notification.actions === notification.actions; // false

Feels like this should behave more like request.headers in fetch, and create the object up front. It's fine for implementations to defer creating the object until first get, as long as it isn't observable.

@annevk
Copy link
Member

annevk commented May 17, 2018

That is the intent (see the [SameObject] annotation). We could either create an internal slot or wait for whatwg/webidl#212 to get fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants