mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-09-28 23:07:30 +00:00
10 lines
338 B
JavaScript
10 lines
338 B
JavaScript
module.exports = function(...items) {
|
|
items.forEach((item, index) => {
|
|
if (item === undefined || (item && item.constructor && item.constructor.name == "Object" && Object.keys(item).length == 0)) {
|
|
console.log(`Bad import for arg index ${index}`)
|
|
// @ts-ignore
|
|
require("/") // generate an error with a require stack.
|
|
}
|
|
})
|
|
}
|