Different argument counts in function calls are returning tue
- Dominant language
- JavaScript
- Stars
- 198
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Using the following code (in node):
```
var Structured = require('structured');
var structure = function() {
$fn($a, $b);
};
var code = "fn('a', 'b', 'c');";
console.log(Structured.match(code, structure));
```
I get `true` when I'm expecting `false`.
If you change the argument counts around:
```
var Structured = require('structured');
var structure = function() {
$fn($a, $b, $c);
};
var code = "fn('a', 'b');";
console.log(Structured.match(code, structure));
```
`false` is returned as expected.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce both examples in Node.js and start at Structured.match, the entry point named in the report, tracing how argument counts are compared. Done means the first example returns false while the second continues to return false; verify both results with the project's existing checks if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100