| Summary: | [SameObject] is not applied in FrozenArrays or TypeArrays | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Imanol Fernandez <ifernandez> |
| Component: | Bindings | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ashvayka, cdumez, sam, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Imanol Fernandez
2021-03-12 07:53:11 PST
"SameObject": {
"contextsAllowed": ["attribute"],
"standard": {
"url": "https://heycam.github.io/webidl/#SameObject"
},
"unsupported": true
},
We just don't support [SameObject] in WebKit right now. There are way to implement this with JS visitors or [CachedAttribute] though. We do this all the time.
Where are you trying to use it exactly?
(In reply to Chris Dumez from comment #1) > "SameObject": { > "contextsAllowed": ["attribute"], > "standard": { > "url": "https://heycam.github.io/webidl/#SameObject" > }, > "unsupported": true > }, > > We just don't support [SameObject] in WebKit right now. There are way to > implement this with JS visitors or [CachedAttribute] though. We do this all > the time. > > Where are you trying to use it exactly? MessageEvent.ports seems to be an example of FrozenArray attribute where we've implementation our custom "SameObject" support. You may be able to use that as example. MessageEvent.ports was a great example, thanks! I implemented the related changes in bug 223635 |