I investigated a little further and found out that the declaration of class Exception was changed in 1.6 in that the Javscript error object is no longer created.
Version 1.6 Exception class
Exception = class(TObject)
private
fMessage: String;
...
Public
constructor Create(const Msg: String); reintroduce;
...
end;
constructor Exception.Create(const Msg: String);
begin
fMessage:=Msg;
...
end;
Previous version of Exception class
Exception = class(TObject)
private
fMessage: String;
FJSError: TJSError;
...
public
constructor Create(const Msg: String); reintroduce;
...
property JSError: TJSError read FJSError write FJSError;
...
end;
constructor Exception.Create(const Msg: String);
begin
fMessage:=Msg;
FJSError := TJSError.new(Msg);
...
end;
The difference is that FJSError resp JSError no longer exists in 1.6.
Would you mind to explain why the JS error object is no longer created? This effectively also removes the callstack that comes with the JS error object and therefore breaks any error reporting relying on the callstack.
Thank you, regards, Walter