Handle Undefined.instance and ScriptableObject.NOT_FOUND in ScriptingEngine.get().
Fix for bug 267: http://www.helma.org/bugs/show_bug.cgi?id=267
This commit is contained in:
parent
331dc61787
commit
adba53e86a
1 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,8 @@ public class RhinoEngine implements ScriptingEngine {
|
|||
return null;
|
||||
} else if (prop instanceof Wrapper) {
|
||||
return ((Wrapper) prop).unwrap();
|
||||
} else if (prop == Undefined.instance || prop == ScriptableObject.NOT_FOUND) {
|
||||
return null;
|
||||
} else {
|
||||
return prop;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue