mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
8737683ba0
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>
14 lines
236 B
JavaScript
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;
|