Search in sources :

Example 1 with ProxyObject

use of com.github.anba.es6draft.runtime.types.builtins.ProxyObject in project es6draft by anba.

the class ProxyConstructor method construct.

/**
 * 26.2.1.1 Proxy (target, handler)
 */
@Override
public ProxyObject construct(ExecutionContext callerContext, Constructor newTarget, Object... args) {
    Object target = argument(args, 0);
    Object handler = argument(args, 1);
    /* step 2 */
    return ProxyCreate(calleeContext(), target, handler);
}
Also used : ProxyObject(com.github.anba.es6draft.runtime.types.builtins.ProxyObject) OrdinaryObject(com.github.anba.es6draft.runtime.types.builtins.OrdinaryObject)

Aggregations

OrdinaryObject (com.github.anba.es6draft.runtime.types.builtins.OrdinaryObject)1 ProxyObject (com.github.anba.es6draft.runtime.types.builtins.ProxyObject)1