Closed backspaces closed 1 year ago
#ptr
is private property. JS is strict about its access, there is probably some complex process going on that breaks when canvas uses private properties. However, for proper spec conformance, I will change it to use unique symbols for private properties which are less strict. I'll do this sometime this weekend.
Very nice, thanks. I'll check to see that it works fine in the browser.
OK, checked browser and all 24 models work fine in browser. Goal is to get all 24 running in deno. CountiesModel & AvalancheModel still fail in deno.
Er..running in deno === running in deno main and in worker. I think the worker freeze is handled in the prior issue but not yet tested against the 24 models.
I got sidetracked by other projects last weekend, I’ll get to this after work today!
Private property error can be quite easily fixed, but I didn’t quite understand the last message. Does it mean this same error shows up in workers too? If that, then it’s expected. Wonder what is going on with the code to violate private property access.
The last message was to summarize my overall deno goals, not specifically related to this issue. No worries! And thanks for getting on this so quickly.
Should be fixed in 084f972 - I'll make a new release in some time
Update: While it worked fine on macOS locally for me, macOS CI seems to have failed. I’ll check this tomorrow after work (before if possible) again, as its time for me to sleep now
Seems like I forgot to update version in 0.5.3 metadata which causes old binary to be downloaded..
Update: Published 0.5.4 which should do the job
YeY .. all 24 models work fine in deno main. I'll test workers shortly. Nice job DjD.
Should I close this issue, now that it is resolved?
Yup, we'll close this now. Thanks for your help!
I get this error below when running this simple method deep within a fairly complex project.
The CanvasRenderingContext2D is made as shown in the docs:
I don't think this error is a javascript error but buried deep within skiaCanvas.
Can you think how this could happen? What the error code suggests?