You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow throwing arbitrary types and add builtin error classes (#724)
* allow throwing arbitrary types and add builtin error classes
* track Scope in transformClassExpression
* allow subclassing Error
* Update test/unit/error.spec.ts
Co-Authored-By: ark120202 <[email protected]>
* use custom traceback in errors
* return full stack on fallback
* use builder API for tests
* cleanup
* add error name to type and reduce dependencies
* test subclasses for stack
* test string representation of subclassed errors
* fix throwing as function test
* style changes
* formatting
* add sourceMapTraceback option to test
* add 'This error serves to prevent false positives from .expectNoExecutionError()'
* Update test/unit/error.spec.ts
Co-Authored-By: ark120202 <[email protected]>
* rollback to use debug.traceback
* Update src/lualib/Error.ts
Co-Authored-By: ark120202 <[email protected]>
* fix throwing strings and update tests
* Update src/lualib/Error.ts
Co-Authored-By: ark120202 <[email protected]>
* test extending from error with custom toString()
* update identifiers test for new exception handling
* use constructor assignment for message property
* print stack for uncaught errors
* Update test/unit/error.spec.ts
Co-Authored-By: ark120202 <[email protected]>
* Update test/unit/error.spec.ts
Co-Authored-By: ark120202 <[email protected]>
* rollback toString() support
* add more test cases
* formatting
* set __tostring metamethod in constructor
* update tests
* remove generic from ErrorType
* add info string to tests
* style changes
* style changes
0 commit comments