mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
JS: Add test with wrapper function
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
function wrap(fn) {
|
||||
return x => fn(x);
|
||||
}
|
||||
|
||||
function f() {}
|
||||
export const f1 = wrap(f); // $ method=(pack12).f1
|
||||
export const f2 = wrap(f); // $ method=(pack12).f2
|
||||
|
||||
function g() {}
|
||||
export const g1 = wrap(g); // $ method=(pack12).g1
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "pack12",
|
||||
"main": "./index.js"
|
||||
}
|
||||
Reference in New Issue
Block a user