* Set prototype and parent scope, although we'd have to return NOT_FOUND

in get() in order to get the prototype chain working.
This commit is contained in:
hns 2007-03-15 16:16:16 +00:00
parent 504e5dba18
commit c070627d99

View file

@ -43,12 +43,14 @@ public class MapWrapper extends ScriptableObject implements Wrapper {
/**
* Creates a new MapWrapper object.
*
* @param map ...
* @param core ...
* @param map the Map
* @param core the RhinoCore instance
*/
public MapWrapper(Map map, RhinoCore core) {
this.map = map;
this.core = core;
setParentScope(core.global);
setPrototype(ScriptableObject.getObjectPrototype(core.global));
}
/**