mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
5da155398e
Parse `const assert = module.exports = ok;` as exporting a constructor named `assert`. PR-URL: https://github.com/nodejs/node/pull/22601 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
14 lines
196 B
JavaScript
14 lines
196 B
JavaScript
'use strict';
|
|
|
|
// Parallel assignment to the exported variable and module.exports.
|
|
|
|
function ok() {
|
|
}
|
|
|
|
const asserts = module.exports = ok;
|
|
|
|
asserts.ok = ok;
|
|
|
|
asserts.strictEqual = function() {
|
|
}
|