core: Length of undefined is 0.  It's fine.  Quiet some errors.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build Tilde Friends / Build-All (push) Successful in 18m51s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build Tilde Friends / Build-All (push) Successful in 18m51s
				
			This commit is contained in:
		| @@ -401,6 +401,11 @@ void tf_util_register(JSContext* context) | ||||
|  | ||||
| int tf_util_get_length(JSContext* context, JSValue value) | ||||
| { | ||||
| 	if (JS_IsUndefined(value)) | ||||
| 	{ | ||||
| 		return 0; | ||||
| 	} | ||||
|  | ||||
| 	JSValue length = JS_GetPropertyStr(context, value, "length"); | ||||
| 	int result = 0; | ||||
| 	JS_ToInt32(context, &result, length); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user