Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 673c285

Browse files
committed
return undefined if eval fails. signals does not exist or error
1 parent 04477fb commit 673c285

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/__get__.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ function __get__(varName) {
1717
throw new TypeError("__get__ expects a non-empty string");
1818
}
1919
} catch(e) {
20-
return {
21-
__get__: () => {}
22-
}
20+
// does not exist
21+
return undefined;
2322
}
2423
}
2524

0 commit comments

Comments
 (0)