Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override parameters using proceed(m,n,o) #16

Closed
ghost opened this issue Sep 8, 2013 · 0 comments
Closed

Override parameters using proceed(m,n,o) #16

ghost opened this issue Sep 8, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 8, 2013

Given a function:
function foo(a,b,c) {}

When Intercepted with:
var foo = scarlet.intercept(foo).using(function(proceed, invocation){
proceed(4,5,6);
})

foo(1,2,3);

Then:
foo should be called with 4,5,6.

@ghost ghost closed this as completed Sep 18, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants