UNPKG

virtuoso-sparql-client

Version:
12 lines (11 loc) 328 B
module.exports = class Value { constructor() { if (new.target === Value) { throw new TypeError("Cannot construct Abstract instances directly"); } if (this.toTriplePattern === undefined) { // or maybe test typeof this.method === "function" throw new TypeError("Must override method"); } } }