goofballLogic / ld-query

Querying JSON-LD
MIT License
20 stars 6 forks source link

Empty context causes error #23

Open comopra opened 7 years ago

comopra commented 7 years ago

If you pass in {} as the context, you get an error:

TypeError: expand is not a function
    at extractStep (/home/ubuntu/workspace/node_modules/ld-query/src/ld-query.js:284:29)
    at getSteps (/home/ubuntu/workspace/node_modules/ld-query/src/ld-query.js:296:25)
    at select (/home/ubuntu/workspace/node_modules/ld-query/src/ld-query.js:326:21)
    at QueryNode.query (/home/ubuntu/workspace/node_modules/ld-query/src/ld-query.js:351:25)