Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jsruntime): js objects #239

Open
masnagam opened this issue Jul 21, 2024 · 3 comments
Open

feat(jsruntime): js objects #239

masnagam opened this issue Jul 21, 2024 · 3 comments
Assignees

Comments

@masnagam
Copy link
Member

No description provided.

@masnagam
Copy link
Member Author

masnagam commented Nov 3, 2024

@masnagam masnagam self-assigned this Nov 10, 2024
@masnagam
Copy link
Member Author

masnagam commented Nov 13, 2024

in the initial implementation, we focus on implementing operations defined in the specification and don't introduce any mechanisms to improve performance such as the inline caching.

we don't implement gc on this ticket. a separate ticket #237 has been created for that.

@masnagam
Copy link
Member Author

in the first step, we implement the global environment specification type. currently, variables that are not defined in any lexical scopes causes panic!() in the jsruntime::semantics::scope.

we introduce a simple hashmap as a global object and move global variables such as print to the global object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant