Skip to content

[css-animation-worklet] The steps of registerAnimator mix types in a weird way #908

Open
@bzbarsky

Description

@bzbarsky

https://drafts.css-houdini.org/css-animationworklet-1/#dom-animationworkletglobalscope-registeranimator step 5 does:

If SameValue(prototype, StatelessAnimator)

where prototype is the .prototype property of the constructor that was passed in, and StatelessAnimator is ... what exactly? It links to the interface definition. Does it mean the interface object? The interface prototype object? Something that has the interface prototype object on its prototype chain (i.e. checking that the passed-in thing is a subclass of StatelessAnimator)? Something else?

I suspect it means the subclass thing, but that's totally not what it says.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions