This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
404 B
12 lines
404 B
// call something on iterator step with safe closing on error |
|
var anObject = require('./$.an-object'); |
|
module.exports = function(iterator, fn, value, entries){ |
|
try { |
|
return entries ? fn(anObject(value)[0], value[1]) : fn(value); |
|
// 7.4.6 IteratorClose(iterator, completion) |
|
} catch(e){ |
|
var ret = iterator['return']; |
|
if(ret !== undefined)anObject(ret.call(iterator)); |
|
throw e; |
|
} |
|
}; |