fixed layersChecher error.

This commit is contained in:
wangpenglong 2023-10-23 11:04:49 +08:00 committed by chriswang521
parent 8a3cd1c3a0
commit 6073f0ec8f
2 changed files with 14 additions and 2 deletions

View File

@ -55,7 +55,13 @@ const CORE_TYPES = [
'MessageChannel',
'MessagePort',
'URL',
'URLSearchParams'
'URLSearchParams',
'ReadonlyArray',
'Event',
'EventTarget',
'BroadcastChannel',
'performance',
'Blob'
];
// Types that are defined in a common layer but are known to be only
// available in native environments should not be allowed in browser

View File

@ -56,7 +56,13 @@ const CORE_TYPES = [
'MessageChannel',
'MessagePort',
'URL',
'URLSearchParams'
'URLSearchParams',
'ReadonlyArray',
'Event',
'EventTarget',
'BroadcastChannel',
'performance',
'Blob'
];
// Types that are defined in a common layer but are known to be only