From c070627d9927d945eca2af90d41d23a710ab7d80 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 15 Mar 2007 16:16:16 +0000 Subject: [PATCH] * Set prototype and parent scope, although we'd have to return NOT_FOUND in get() in order to get the prototype chain working. --- src/helma/scripting/rhino/MapWrapper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helma/scripting/rhino/MapWrapper.java b/src/helma/scripting/rhino/MapWrapper.java index 62726be2..10494ee3 100644 --- a/src/helma/scripting/rhino/MapWrapper.java +++ b/src/helma/scripting/rhino/MapWrapper.java @@ -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)); } /**