JS: Add test where root export object is a function

This commit is contained in:
Asger F
2024-04-05 11:48:18 +02:00
parent f4e05cc621
commit ab3c03d2d6
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{
"name": "root-function",
"main": "root-function.js"
}

View File

@@ -0,0 +1,9 @@
class C {
method() {}
}
module.exports = function() {
return new C();
}
module.exports.PublicClass = C;