Currently we build the assertion error in the compiler because of previous restrictions in the Exception module in the runtime. We should move this logic into the Exception module and have assertion error become AssertionError(String, Number) where String is the filename and Number is the line number. Notably once we implement exception catching the current approach would not work very well.
Currently we build the assertion error in the compiler because of previous restrictions in the
Exception
module in the runtime. We should move this logic into theException
module and have assertion error becomeAssertionError(String, Number)
whereString
is the filename andNumber
is the line number. Notably once we implement exception catching the current approach would not work very well.