static Scriptable constructSpecific(Context cx, Scriptable scope, Object[] args, MemberBox ctor) { Object instance = constructInternal(args, ctor); // we need to force this to be wrapped, because construct _has_ // to return a scriptable Scriptable topLevel = ScriptableObject.getTopLevelScope(scope); return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance); }
static Scriptable constructSpecific(Context cx, Scriptable scope, Object[] args, MemberBox ctor) { Object instance = constructInternal(args, ctor); // we need to force this to be wrapped, because construct _has_ // to return a scriptable Scriptable topLevel = ScriptableObject.getTopLevelScope(scope); return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance); }
static Scriptable constructSpecific(Context cx, Scriptable scope, Object[] args, MemberBox ctor) { Object instance = constructInternal(args, ctor); // we need to force this to be wrapped, because construct _has_ // to return a scriptable Scriptable topLevel = ScriptableObject.getTopLevelScope(scope); return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance); }
static Scriptable constructSpecific(Context cx, Scriptable scope, Object[] args, MemberBox ctor) { Object instance = constructInternal(args, ctor); // we need to force this to be wrapped, because construct _has_ // to return a scriptable Scriptable topLevel = ScriptableObject.getTopLevelScope(scope); return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance); }
return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance);
return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance);