sylvainpolletvillard / ObjectModel

Strong Dynamically Typed Object Modeling for JavaScript
http://objectmodel.js.org
MIT License
467 stars 30 forks source link

Proposal: remove numberOfArgs assertion on FunctionModel #108

Closed sylvainpolletvillard closed 5 years ago

sylvainpolletvillard commented 5 years ago

In v3, all FunctionModels come with a built-in assertion that checks if a function is not called with more parameters that it can handle. I propose to remove this assertion in v4, and make it opt-in on specific function models instead.

Arguments: