mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
JS: Add test where root export object is a function
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "root-function",
|
||||
"main": "root-function.js"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class C {
|
||||
method() {}
|
||||
}
|
||||
|
||||
module.exports = function() {
|
||||
return new C();
|
||||
}
|
||||
|
||||
module.exports.PublicClass = C;
|
||||
Reference in New Issue
Block a user