Coder Social home page Coder Social logo

Error: Class not in class table about squeakjs HOT 5 OPEN

codefrau avatar codefrau commented on June 11, 2024
Error: Class not in class table

from squeakjs.

Comments (5)

codefrau avatar codefrau commented on June 11, 2024

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.

codefrau avatar codefrau commented on June 11, 2024

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.

fniephaus avatar fniephaus commented on June 11, 2024

FWIW, I've implemented this some time ago in TruffleSqueak. 😉

from squeakjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.