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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user