• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1const assert = require('assert');
2
3class Parent {}
4class A extends Parent {}
5
6module.exports = A;
7require('./warning-moduleexports-class-b.js');
8process.nextTick(() => {
9  assert.strictEqual(module.exports, A);
10  assert.strictEqual(Object.getPrototypeOf(module.exports), Parent);
11});
12