why meld need push joinpoint to stack and remove it
Closed this issue · 1 comments
enginespot commented
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();
}
briancavalier commented
This question was answered here on the cujoJS google group.