error::backtrace() raises an error

PraxisPraxis Posts: 274

e.backtrace() raises TypeError: Result of expression 'e.backtrace' [undefined] is not a function.

Happens in both DS v21.0.6 Beta and DS v4.24.0.3 Beta

OS: Win11 64bit

Am I doing something wrong?, or is this a bug?, or a documentation problem?

Example code:

try {
  NonExistentVar.Property = 77;
} catch(e) {
  print( e.toString() );     // ReferenceError: Can't find variable: NonExistentVar
  print( e.backtrace() )     // >>> raises TypeError: Result of expression 'e.backtrace' [undefined] is not a function.
}
Post edited by Praxis on

Comments

Sign In or Register to comment.