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:
hns 2003-08-18 10:27:55 +00:00
parent 331dc61787
commit adba53e86a

View file

@ -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;
}