beeware / batavia

A JavaScript implementation of the Python virtual machine.
http://pybee.org/batavia
Other
1.39k stars 424 forks source link

Fixed oct() builtin error handling - all test cases now pass #750

Closed nicklambourne closed 6 years ago

nicklambourne commented 6 years ago

Changes

Added correct TypeError reporting for incorrect use of oct() builtin. All incorrect argument types now throw TypeErrors with python-compliant error messages.

Problem

Error handling for unsupported types passed to the builtin oct() method was not python-compliant.

Fixes

Contributes to fixing #47

PR Checklist: