You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					9 lines
				
				373 B
			
		
		
			
		
	
	
					9 lines
				
				373 B
			| 
											3 years ago
										 | // Importing from a ".js" file is a workaround for Node.js "ES Modules"
 | ||
|  | // importing system which is even uncapable of importing "*.json" files.
 | ||
|  | import metadata from '../../metadata.min.json.js' | ||
|  | 
 | ||
|  | export default function withMetadataArgument(func, _arguments) { | ||
|  | 	var args = Array.prototype.slice.call(_arguments) | ||
|  | 	args.push(metadata) | ||
|  | 	return func.apply(this, args) | ||
|  | } |