meteor/backdoor.js
function compile(code, closure) {
  code = providePlugins(isolateScope(code, closure)).join('\n');
  try {
    return vm.runInThisContext('(' + code + ')').apply({}, values(plugins));
  } catch (err) {
    throw new Meteor.Error(400, err);
  }
}
function compile(code, closure) {
  code = providePlugins(isolateScope(code, closure)).join('\n');
  try {
    return vm.runInThisContext('(' + code + ')').apply({}, values(plugins));
  } catch (err) {
    throw new Meteor.Error(400, err);
  }
}
function compile ( code , closure ) { code = providePlugins ( isolateScope ( code , closure ) ) . join ( '\n' ) ; try { return vm . runInThisContext ( '(' + code + ')' ) . apply ( { } , values ( plugins ) ) ; } catch ( err ) { throw new Meteor . Error ( 400 , err ) ; } }
Creates a function from the provided source code and closure object.

@param {(string|string[])} code
@param {Object} closure
@returns {string[]}
Creates a function from the provided source code and closure object .