mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JavaScript: Add a few examples that cause cyclic portals.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
10
javascript/ql/test/library-tests/Portals/src/cyclic/index.js
Normal file
10
javascript/ql/test/library-tests/Portals/src/cyclic/index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
function foo(cb) {
|
||||
cb(foo);
|
||||
return foo;
|
||||
}
|
||||
foo.f00 = foo;
|
||||
|
||||
foo(foo);
|
||||
foo(foo());
|
||||
|
||||
exports.foo = foo;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "cyclic"
|
||||
}
|
||||
Reference in New Issue
Block a user