0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/fixtures/apilinks/reverse.js
Sam Ruby 5da155398e tools: add [src] links to assert.html
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>
2018-09-02 10:14:03 -04:00

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() {
}