I've seen APIs which simulate argument labels, by taking an object literal.
// JavaScript
function example(args) {
var first = args.first || 0 // default is zero.
// etc.
}
example({first: 1, second: 2, third: 3})
So a JavaScript bridge might want to support both styles (arguments
and keywordArguments
).