Skip to content

Commit 8218683

Browse files
committed
Fix Promise support in test document loader.
Use jsonld.loadDocument for proper Promise support. This fixes a test timeout failure while using newer es6-promise library in a browser. A low level error was not propagating properly.
1 parent 8ff7ba2 commit 8218683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ function createDocumentLoader(test) {
627627
}
628628

629629
// load remotely
630-
return loader(url, callback);
630+
return jsonld.loadDocument(url, callback);
631631
};
632632

633633
return _nodejs ? localLoader : function(url) {

0 commit comments

Comments
 (0)