Sha256: d4c2aa513fcd4d88f4f75bed415985fa09e6f63cb2bfc81400cadb5d79de3e02

Contents?: true

Size: 404 Bytes

Versions: 40

Compression:

Stored size: 404 Bytes

Contents

// 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;
  }
};

Version data entries

40 entries across 18 versions & 7 rubygems

Version Path
ilog-0.4.1 node_modules/core-js/modules/$.iter-call.js
ilog-0.4.1 node_modules/core-js/library/modules/$.iter-call.js
ilog-0.4.0 node_modules/core-js/modules/$.iter-call.js
ilog-0.4.0 node_modules/core-js/library/modules/$.iter-call.js
ilog-0.3.3 node_modules/core-js/modules/$.iter-call.js
ilog-0.3.3 node_modules/core-js/library/modules/$.iter-call.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/$.iter-call.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/modules/$.iter-call.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/modules/$.iter-call.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/$.iter-call.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/library/modules/$.iter-call.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/modules/$.iter-call.js
lanes-0.8.0 node_modules/core-js/library/modules/$.iter-call.js
lanes-0.8.0 node_modules/core-js/modules/$.iter-call.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/modules/$.iter-call.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/library/modules/$.iter-call.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/modules/$.iter-call.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/library/modules/$.iter-call.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/library/modules/$.iter-call.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/modules/$.iter-call.js