throws.js 278 B

12345678910111213141516171819202122232425
  1. var _ = require('lodash');
  2. var tree = require('../lib/tree');
  3. var treeStructure = require('../structure');
  4. module.exports = function(scope) {
  5. var x = _.find(scope.flatExp, function(x) { return x.type = 'ThrowStatement'; })
  6. scope.throwsExceptions = !!x;
  7. };