node/test/fixtures/apilinks/exports.js
Sam Ruby 8737683ba0 tools: add [src] links to child-process.html
handle exports. as an alternative to module.exports

PR-URL: https://github.com/nodejs/node/pull/22706
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-09-08 13:42:41 -04:00

14 lines
236 B
JavaScript

'use strict';
// Support `exports` as an alternative to `module.exports`.
function Buffer() {};
exports.Buffer = Buffer;
exports.fn1 = function fn1() {};
var fn2 = exports.fn2 = function() {};
function fn3() {};
exports.fn3 = fn3;