Skip to content

Commit bd59151

Browse files
committed
feat(isES2015): improve ES2015 detection
1 parent 373d59f commit bd59151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/isES2015.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function isES2015() {
2-
if (typeof Symbol === 'undefined' || typeof Reflect === 'undefined') return false;
2+
if (typeof Symbol === 'undefined' || typeof Reflect === 'undefined' || typeof Proxy === 'undefined' || Object.isSealed(Proxy)) return false;
33

44
return true;
55
}

0 commit comments

Comments
 (0)