Skip to content

Different argument counts in function calls are returning tue #18

@doowb

Description

@doowb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions