Skip to content

Commit 906fa89

Browse files
committed
stricter Symbol support check
1 parent f717032 commit 906fa89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/util/env.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export function isNative (Ctor: Function): boolean {
4141
return /native code/.test(Ctor.toString())
4242
}
4343

44-
export const hasSymbol = typeof Symbol !== 'undefined' && isNative(Symbol)
44+
export const hasSymbol =
45+
typeof Symbol !== 'undefined' && isNative(Symbol) &&
46+
typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys)
4547

4648
/**
4749
* Defer a task to execute it asynchronously.

0 commit comments

Comments
 (0)