RFE 303572: access to underlying RhinoException in rethrown error objects

git-svn-id: svn://10.0.0.236/trunk@177319 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
szegedia%freemail.hu
2005-08-08 08:49:09 +00:00
parent 2de703e3a3
commit 827bfadbc9

View File

@@ -2938,6 +2938,12 @@ public class ScriptRuntime {
errorObject, "javaException", wrap,
ScriptableObject.PERMANENT | ScriptableObject.READONLY);
}
if (re != null) {
Object wrap = cx.getWrapFactory().wrap(cx, scope, re, null);
ScriptableObject.defineProperty(
errorObject, "rhinoException", wrap,
ScriptableObject.PERMANENT | ScriptableObject.READONLY);
}
obj = errorObject;
}