node/test/fixtures/apilinks/class.js
Sam Ruby 441391b9eb tools: add [src] links to async_hooks.html
handle ES2015 Class, contructor, and instance methods

unrelated: update Makefile so that generated HTML is out of date whenever
tools/doc/apilinks.js is updated.

PR-URL: https://github.com/nodejs/node/pull/22656
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-09-05 12:46:51 +02:00

13 lines
146 B
JavaScript

'use strict';
// An exported class using ES2015 class syntax.
class Class {
constructor() {};
method() {};
}
module.exports = {
Class
};