This is consistent with the behaviour in Adobe Reader (and PDFium), and it fixes the display of page 30 in https://bug1354114.bmoattachments.org/attachment.cgi?id=8855457 (taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1354114). The patch also makes the `error` message for invalid numbers slightly more useful, by including the charCode as well. (Having that information available would have reduced the time spent on debugging the PDF file above.)
		
			
				
	
	
		
			2 lines
		
	
	
		
			64 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
	
	
			
		
		
	
	
			2 lines
		
	
	
		
			64 B
		
	
	
	
		
			SYSTEMD
		
	
	
	
	
	
https://bug1354114.bmoattachments.org/attachment.cgi?id=8855457
 |