Oh, the testcase passes DOMMatrix as input, function is defined to take DOMMatrix2DInit as input. And getting the data out of native implementation is slower than it would be to get it from normal dictionary. If we could detect earlier that it is a real DOMMatrix, then this should be faster.
Bug 1958651 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Oh, the testcase passes DOMMatrix as input, function is defined to take DOMMatrix2DInit as input. And getting the data out of native implementation is slower than it would be to get it from normal dictionary. If we could detect earlier that it is a real DOMMatrix, then this should be faster. Though, on JS side one could override the normal getters, I think, and those should get called.