aabtop / reify

Reify lets you embed a customized TypeScript runtime within a C++ application.
MIT License
6 stars 0 forks source link

Add support for assert() statements. #24

Open aabtop opened 4 years ago

aabtop commented 4 years ago

These can increase safety and usability of the library and user TS code.

They could raise an exception, which we can watch for and print diagnostics about, including a stack trace. This could also potentially be used as a makeshift breakpoint/debugging tool.

aabtop commented 4 years ago

Might make sense to also support console.log() for debugging as well.