Skip to content

Commit df1080e

Browse files
atlowChemiaduh95
authored andcommitted
test_runner: expose lcov reporter as newable function
This commit exposes the lcov reporter as a newable function, so that it can be used in the same way as the other reporters. This will allow passing in the options to the reporter as well. This breaks the current behavior of the lcov reporter, which exposes an instance of the reporter. Fixes: #52385 Ref: #49184 PR-URL: #52403 Refs: #49184 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 8e4fd28 commit df1080e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test/reporters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ObjectDefineProperties(module.exports, {
5353
__proto__: null,
5454
configurable: true,
5555
enumerable: true,
56-
get() {
56+
value: function value() {
5757
lcov ??= require('internal/test_runner/reporter/lcov');
5858
return ReflectConstruct(lcov, arguments);
5959
},

0 commit comments

Comments
 (0)