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

Object.setPrototypeOf(foo, null) crashes #181

Closed
cpcallen opened this issue Jun 1, 2018 · 1 comment
Closed

Object.setPrototypeOf(foo, null) crashes #181

cpcallen opened this issue Jun 1, 2018 · 1 comment
Assignees
Labels
bug server Things related to the codecity server proper
Milestone

Comments

@cpcallen
Copy link
Collaborator

cpcallen commented Jun 1, 2018

Object.setPrototypeOf crashes when given null as second parameter:

> Object.setPrototypeOf({}, null);

TypeError: Cannot read property 'properties' of null
    at intrp.Object.setPrototypeOf (/Users/cpcallen/src/CodeCity/server/interpreter.js:3998:50)
    at intrp.NativeFunction.call (/Users/cpcallen/src/CodeCity/server/interpreter.js:732:18)
    at Interpreter.stepFuncs_.Call (/Users/cpcallen/src/CodeCity/server/interpreter.js:5659:14)
    at Interpreter.stepFuncs_.CallExpression (/Users/cpcallen/src/CodeCity/server/interpreter.js:5622:29)
    at Interpreter.run (/Users/cpcallen/src/CodeCity/server/interpreter.js:309:38)
@cpcallen cpcallen self-assigned this Jun 1, 2018
@cpcallen cpcallen added the bug label Jun 1, 2018
@cpcallen cpcallen added the server Things related to the codecity server proper label Sep 3, 2018
@cpcallen cpcallen added server Things related to the codecity server proper and removed server Things related to the codecity server proper labels Oct 17, 2018
@cpcallen cpcallen added this to the Launch milestone Oct 17, 2018
@cpcallen
Copy link
Collaborator Author

Fixed by 5a9312a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug server Things related to the codecity server proper
Projects
None yet
Development

No branches or pull requests

1 participant