Blame view

bower_components/prism/tests/run-child.js 343 Bytes
f748e9cf   Luigi Serra   new controllet an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  "use strict";
  
  var TestCase = require("./helper/test-case");
  var argv = require("yargs").argv;
  
  if (argv.language) {
  	process.on('message', function (data) {
  		if (data.filePath) {
  			try {
  				TestCase.runTestCase(argv.language, data.filePath);
  				process.send({success: true});
  			} catch (e) {
  				process.send({error: e});
  			}
  		}
  	});
  }