Comments (2)
Oh no. It seems that I've made some false assumption on how C0 type works. When writing debugger, I assumed that all structs are behind a pointer.
When the code above executes, the assumption above is violated and the debugger crashes.
Will try to manage this during the fall break.
from c0vm-ts.
Turns out this bug is related with some core definition of type representation in VM. Current definition of C0Type
does not support a "naked struct":
C0VM-ts/src/types/c0types.d.ts
Lines 7 to 28 in 504e6a2
This can't be fixed easily without re-writing most of the type inference. I'll rewrite and clean up the type inference in current codebase during winter break. And hopefully by that time this will be fixed.
from c0vm-ts.
Related Issues (20)
- Drag and drop not working HOT 7
- [Feature] Shortcut key for Run/Step
- [Bug Report] Breakpoints are missing when switching between C0 and BC0 mode of the editor HOT 1
- [Feature] Import C0 source code Folder (C0 Project)
- [Feature] Replace breakpoint 🔴 emoji into CSS-styled HTML Element
- Unexpected type error when dereferencing Null pointer HOT 1
- [Bug Report] Editor Tab Name not updated properly HOT 5
- [Bug Report] Incorrect Variable Name
- [Bug Report] Negation Mod does not work as expected HOT 1
- [Bug Report] Memory Diagram not showing edges properly HOT 4
- [Bug Report] VM Step does not abort when dereference null pointer HOT 1
- [Feature] Using the compile command provided in README.txt HOT 1
- [Feature Request] Friendly Error Message on array index out of bound HOT 1
- [Feature] Hide detailed data structure from object files in debugger (can turn on/off)
- [Feature Request] Add garbage collection sign to the released memory blocks
- [Feature Request] Highlight the editor tab where execution is happening right now
- [Feature Request] Flexible UI grid
- [Feature Request] Support wildcard matching in README.txt while importing 122 Project
- [Feature Request] Highlight active function frame, Highlight editor tab currently executing
- [Feature Request] When close last editor tab, create a new untitled empty tab instead
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 c0vm-ts.