cujojs/meld

why meld need push joinpoint to stack and remove it

Closed this issue · 1 comments

the follow code, first push joinpoint to a stack , and then remove it

so why?

// TODO: Use Object.freeze once v8 perf problem is fixed
                joinpoint = pushJoinpoint({
                    target: context,
                    method: method,
                    args: args,
                    proceed: proceedCall,
                    proceedApply: proceedApply,
                    proceedCount: proceedCount
                });

                try {
                    // Call supplied around advice function
                    return around.call(context, joinpoint);
                } finally {
                    popJoinpoint();
                }

This question was answered here on the cujoJS google group.