digitalbazaar/jsonld.js — pull request #26 by lanthaler (2013-04-25 08:49:17+00:00)
Title: Throw TypeError when too few parameters are passed to Futures API

If you have a function like

Future expand (JsonLdInput input, optional JsonLdOptions options);

and you call it without any parameters (`expand()`) it should throw an `TypeError` instead of returning a Future. You have to keep in mind that these things will most of the time be implemented in C++. You can't just omit a parameter in that case.