Skip to content

Commit 34939f1

Browse files
committed
fix(karol-f#26): Avoid using eval
1 parent 454642d commit 34939f1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/utils/isES2015.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
function isES2015() {
22
if (typeof Symbol === 'undefined' || typeof Reflect === 'undefined') return false;
3-
try {
4-
eval('class Foo {}'); // eslint-disable-line no-eval
5-
} catch (e) { return false; }
63

74
return true;
85
}

0 commit comments

Comments
 (0)