mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
JavaScript: Improve type inference for destructuring assignments.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
const lib = require("./lib"),
|
||||
{ f } = require("./lib");
|
||||
|
||||
/** calls:lib.f */
|
||||
lib.f();
|
||||
/** calls:lib.f */
|
||||
f();
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports.f =
|
||||
/** name:lib.f */
|
||||
function() {};
|
||||
@@ -80,6 +80,7 @@
|
||||
| classAccessors.js:12:9:12:11 | myZ | classAccessors.js:12:15:12:20 | this.z | file://:0:0:0:0 | indefinite value (call) |
|
||||
| classAccessors.js:12:9:12:11 | myZ | classAccessors.js:12:15:12:20 | this.z | file://:0:0:0:0 | indefinite value (heap) |
|
||||
| destructuring.js:2:7:2:24 | { x, y = (z = x) } | destructuring.js:2:28:2:28 | o | file://:0:0:0:0 | indefinite value (call) |
|
||||
| destructuring.js:3:7:3:8 | z1 | destructuring.js:3:12:3:12 | z | file://:0:0:0:0 | indefinite value (call) |
|
||||
| destructuring.js:3:7:3:8 | z1 | destructuring.js:3:12:3:12 | z | file://:0:0:0:0 | indefinite value (heap) |
|
||||
| es2015.js:1:5:1:7 | Sup | es2015.js:1:11:6:1 | class { ... ;\\n }\\n} | es2015.js:1:11:6:1 | class Sup |
|
||||
| es2015.js:4:9:4:12 | ctor | es2015.js:4:16:4:25 | new.target | file://:0:0:0:0 | indefinite value (call) |
|
||||
|
||||
Reference in New Issue
Block a user