Skip to content

Commit 0db38f0

Browse files
authored
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 f8e325e commit 0db38f0

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
@@ -50,7 +50,7 @@ ObjectDefineProperties(module.exports, {
5050
__proto__: null,
5151
configurable: true,
5252
enumerable: true,
53-
get() {
53+
value: function value() {
5454
lcov ??= require('internal/test_runner/reporter/lcov');
5555
return ReflectConstruct(lcov, arguments);
5656
},

0 commit comments

Comments
 (0)