-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Describe the bug
import { createMutable } from "solid-js/store";
class MyClass {
#a = 123
get a() { return this.#a }
set a(val) { this.#a = val }
constructor() {
return createMutable(this) // comment this out and the example works
}
}
const o = new MyClass()
console.log(o.a) // runtime errorYour Example Website or App
https://playground.solidjs.com/anonymous/553aed2c-926e-41b6-8684-c63c8122c5db
Steps to Reproduce the Bug or Issue
Run the playground.
Expected behavior
no error, "123" should be logged
Screenshots or Videos
N/A
Platform
N/A
Additional context
Solid's Proxys need to be updated to handle private fields.
Metadata
Metadata
Assignees
Labels
No labels