We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Any function with 5 or more parameters fails with a "Parameter Count Mismatch" error when you call it in a with(...) context. Example code:
var ctx = new IronJS.Hosting.CSharp.Context(); ctx.Execute( @" var x = { func0 : function() {}, func1 : function(a) {}, func2 : function(a,b) {}, func3 : function(a,b,c) {}, func4 : function(a,b,c,d) {}, func5 : function(a,b,c,d,e) {}, func6 : function(a,b,c,d,e,f) {}, };"); ctx.Execute("with(x) { func0(); }"); ctx.Execute("with(x) { func1(1); }"); ctx.Execute("with(x) { func2(1,2); }"); ctx.Execute("with(x) { func3(1,2,3); }"); ctx.Execute("with(x) { func4(1,2,3,4); }"); ctx.Execute("x.func5(1,2,3,4,5)"); ctx.Execute("with(x) { func5(1,2,3,4,5); }"); //<-- Fails ctx.Execute("x.func6(1,2,3,4,5,6)"); ctx.Execute("with(x) { func6(1,2,3,4,5,6); }"); //<-- Fails
The text was updated successfully, but these errors were encountered:
fholm
No branches or pull requests
Any function with 5 or more parameters fails with a "Parameter Count Mismatch" error when you call it in a with(...) context. Example code:
The text was updated successfully, but these errors were encountered: