mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
JS: add some tests for this
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
| module-exports.js:3:1:3:4 | this | file://:0:0:0:0 | indefinite value (call) |
|
||||
| module-exports.js:4:28:4:31 | this | file://:0:0:0:0 | indefinite value (call) |
|
||||
| module-exports.js:4:28:4:31 | this | module-exports.js:1:1:8:0 | exports object of module module-exports |
|
||||
| module-exports.js:4:28:4:31 | this | module-exports.js:4:15:4:34 | instance of anonymous function |
|
||||
| module-exports.js:5:35:5:38 | this | file://:0:0:0:0 | indefinite value (call) |
|
||||
| module-exports.js:5:35:5:38 | this | file://:0:0:0:0 | indefinite value (heap) |
|
||||
| module-exports.js:5:35:5:38 | this | module-exports.js:1:1:8:0 | exports object of module module-exports |
|
||||
| module-exports.js:5:35:5:38 | this | module-exports.js:5:22:5:41 | instance of anonymous function |
|
||||
| module-exports.js:6:21:6:24 | this | file://:0:0:0:0 | indefinite value (call) |
|
||||
| module-exports.js:7:28:7:31 | this | file://:0:0:0:0 | indefinite value (call) |
|
||||
| tst.js:4:9:4:12 | this | file://:0:0:0:0 | indefinite value (call) |
|
||||
| tst.js:4:9:4:12 | this | tst.js:1:1:11:1 | instance of class C_normal |
|
||||
| tst.js:8:15:8:18 | this | file://:0:0:0:0 | indefinite value (call) |
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
missingBasicBlock
|
||||
basicBlock
|
||||
| module-exports.js:1:1:1:0 | this | module-exports.js:1:1:1:0 | entry node of <toplevel> |
|
||||
| module-exports.js:4:15:4:14 | this | module-exports.js:4:15:4:14 | entry node of function() { this; } |
|
||||
| module-exports.js:5:22:5:21 | this | module-exports.js:5:22:5:21 | entry node of function() { this; } |
|
||||
| tst.js:1:1:1:0 | this | tst.js:1:1:1:0 | entry node of <toplevel> |
|
||||
| tst.js:1:16:1:15 | this | tst.js:1:16:1:15 | entry node of () {} |
|
||||
| tst.js:3:7:3:6 | this | tst.js:3:7:3:6 | entry node of () {\\n ... ;\\n } |
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
| module-exports.js:4:28:4:31 | this | module-exports.js:4:15:4:34 | function() { this; } |
|
||||
| module-exports.js:5:35:5:38 | this | module-exports.js:5:22:5:41 | function() { this; } |
|
||||
| tst.js:4:9:4:12 | this | tst.js:3:7:5:5 | () {\\n ... ;\\n } |
|
||||
| tst.js:8:15:8:18 | this | tst.js:7:7:9:5 | () {\\n ... ;\\n } |
|
||||
| tst.js:17:13:17:16 | this | tst.js:16:10:18:9 | functio ... } |
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
var fs = require('fs');
|
||||
|
||||
this;
|
||||
exports.foo = function() { this; };
|
||||
module.exports.bar = function() { this; };
|
||||
exports.baz = () => this;
|
||||
module.exports.qux = () => this;
|
||||
Reference in New Issue
Block a user