Skip to content

Commit 9dcb753

Browse files
committed
Update type checker
1 parent c4e9f8e commit 9dcb753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function () {
44
Analizer.checkType = function(targetName, code) {
55
let type = null;
66

7-
if (typeof code != "string") return type;
7+
if (typeof targetName != "string" || typeof code != "string") return type;
88

99
switch (true) {
1010
case !!code.match(new RegExp(`${targetName}\\[[0-9]+\\]`)):

0 commit comments

Comments
 (0)