Skip to content

Instantly share code, notes, and snippets.

@tobie
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobie/3b4139c9254452254035 to your computer and use it in GitHub Desktop.
Save tobie/3b4139c9254452254035 to your computer and use it in GitHub Desktop.
console.lo("foo");
phantom.exit()
"use strict";
var path = require("path");
var childProcess = require("child_process");
var phantomjs = require("phantomjs");
childProcess.execFile(phantomjs.path, [path.join(__dirname, "./borked-syntax.js")], function(err, stdout, stderr) {
console.log(err);
console.log(stderr);
console.log(stdout);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment