refactor(shared): use Array literal instead of split for global whitelist Set creation (#173)
This commit is contained in:
		
							parent
							
								
									f91d335e65
								
							
						
					
					
						commit
						f97d6e7d63
					
				| @ -1,7 +1,7 @@ | |||||||
| export const globalsWhitelist = new Set( | export const globalsWhitelist = new Set( | ||||||
|   ( |   [ | ||||||
|     'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' + |     'Infinity', 'undefined', 'NaN', 'isFinite', 'isNaN', 'parseFloat', 'parseInt', 'decodeURI', | ||||||
|     'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' + |     'decodeURIComponent', 'encodeURI', 'encodeURIComponent', 'Math', 'Number', 'Date', 'Array', | ||||||
|     'Object,Boolean,String,RegExp,Map,Set,JSON,Intl' |     'Object', 'Boolean', 'String', 'RegExp', 'Map', 'Set', 'JSON', 'Intl' | ||||||
|   ).split(',') |   ] | ||||||
| ) | ) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user