Comments (5)
With a Spur object memory, classes are supposed to be entered into the global class table. Their identity hash is the index into that class table. The identity hash primitive is supposed to put them there. That index is used instead of a class pointer in object headers.
SqueakJS doesn’t actually use the index or class table at runtime, it just tries to keep track of it. It’s quite possible I never tested that properly.
from squeakjs.
Workaround from Dan:
First I filed out the class in question (would help if the error told me which it was, but I figured it was the one to which I had added an instvar).
Then I removed the class. Might have to nil its value in Undeclared (I didn’t)
Then I saved and it worked.
Then I filed the class back in from its filout (could add the instvar in the file if desired).
All seems fine.
from squeakjs.
FWIW, I've implemented this some time ago in TruffleSqueak.
from squeakjs.
Related Issues (20)
- Problem with failing primitiveStringHash? | Cannot load metacello.sar HOT 7
- Self-hosted saving? HOT 9
- High-Performance JIT HOT 10
- Add inline caches
- Where is the code for opening the onscreen keyboard for iOS? HOT 1
- SoundPlayer has still room for improvement HOT 1
- TypeError: Cannot read property '3' of undefined
- Error on loading squeak.js -- line 29 HOT 2
- Very frequent "primitive 176 not implemented" in debugger running Cuis image HOT 3
- Custom pointer shapes not shown in Mac Safari HOT 4
- 64 bit Cuis image out of memory HOT 1
- Squeak 6.0 image format unknown HOT 2
- High-DPI not working HOT 9
- Primitive 218 doNamedPrimitiveWithArgs not implemented HOT 1
- Mouse fixed at top left in Firefox for Android HOT 3
- I succeeded in running squeakJS in the web browser. But, ... HOT 1
- I cant open my projects in scratch.js.org HOT 13
- Add file import button HOT 1
- Fix writing Scratch projects HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squeakjs.