MCPcopy Index your code
hub / github.com/mailru/FileAPI / sendMessage

Function sendMessage

tests/grunt-task/phantomjs/grunt-lib-phantomjs-main.js:29–33  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

27
28// Messages are sent to the parent by appending them to the tempfile.
29var sendMessage = function(arg) {
30 var args = Array.isArray(arg) ? arg : [].slice.call(arguments);
31 last = new Date();
32 fs.write(tmpfile, JSON.stringify(args) + '\n', 'a');
33};
34
35// This allows grunt to abort if the PhantomJS version isn't adequate.
36sendMessage('private', 'version', phantom.version);

Callers 2

injectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected