provegard / ncdbg

A debugger for Nashorn that uses Chrome DevTools as frontend
BSD 3-Clause "New" or "Revised" License
31 stars 5 forks source link

Marshal Java exceptions properly #3

Closed provegard closed 7 years ago

provegard commented 7 years ago

When we observe a Java exception, we assume it's a real thrown error. But it might not be, since Nashorn Error has a property "nashornException" which is a Java error.

provegard commented 7 years ago

Nashorn's DebuggersSupport.eval doesn't allow us to distinguish between a thrown exception and a returned exception.