Right now arguments aren't checked at all. If the wrong type is passed in, weird things will probably happen. We should use the .json files that Google has for the API interfaces to check argument types. This would also simplify the handling of optional arguments.
Link to how Google does this.
Priority: -- → P2
Here's a sample JSON file: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/extensions/api/windows.json&sq=package:chromium&type=cs&l=121
4 years ago
Component: Extension Compatibility → WebExtensions
Product: Firefox → Toolkit
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1208257
You need to log in before you can comment on or make changes to this bug.