HaxeFoundation / HaxeFoundation/haxe
[js] Certain extended classes in web API lack appropriately mutable fields
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
For example, `DOMMatrix` which extends `DOMMatrixReadOnly` should make properties representing matrix components writable. In Haxe's js target these properties remain immutable:
~~~haxe
import js.html.DOMMatrix;
var matrix = new DOMMatrix();
matrix.a = 1;
~~~
Compiler says: `This expression cannot be accessed for writing`
See also `DOMPoint` and `DOMRect`.
Contributor guide
Research direction
Start by locating the Haxe js-target declarations for DOMMatrix, DOMMatrixReadOnly, DOMPoint, and DOMRect, then compare how inherited fields are declared. Use the DOMMatrix example as a compile check and confirm that the relevant component properties are writable while the read-only base remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100