Skip to content

Commit 9d3b65e

Browse files
committed
Add comment regarding the promises API parameters.
1 parent 09df565 commit 9d3b65e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/jsonld.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,12 @@ jsonld.promises = function(options) {
12651265
api = {};
12661266
}
12671267

1268+
// The Web IDL test harness will check the number of parameters defined in
1269+
// the functions below. The number of parameters must exactly match the
1270+
// required (non-optional) parameters of the JsonLdProcessor interface as
1271+
// defined here:
1272+
// https://www.w3.org/TR/json-ld-api/#the-jsonldprocessor-interface
1273+
12681274
api.expand = function(input) {
12691275
if(arguments.length < 1) {
12701276
throw new TypeError('Could not expand, too few arguments.');

0 commit comments

Comments
 (0)