Merge pull request #2098 from asger-semmle/ts-computed-field-name-context

Approved by esben-semmle
This commit is contained in:
semmle-qlci
2019-10-10 12:06:46 +01:00
committed by GitHub
14 changed files with 286 additions and 191 deletions

View File

@@ -0,0 +1,13 @@
import dummy from 'dummy';
var key1 = "key1"; // OK
export class NoConstructor {
[key1] = 4;
}
var key2 = "key2"; // OK
export class WithConstructor {
[key2] = 4;
constructor() {}
}