mirror of
				https://github.com/bellard/quickjs.git
				synced 2025-05-29 01:49:18 +08:00 
			
		
		
		
	Unbroke tests/test_test_bjson.js
This commit is contained in:
		
							parent
							
								
									2e1013429a
								
							
						
					
					
						commit
						626e0d4e60
					
				@ -144,18 +144,6 @@ function bjson_test_reference()
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function bjson_test_regexp()
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    var buf, r;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    bjson_test(/xyzzy/);
 | 
					 | 
				
			||||||
    bjson_test(/xyzzy/digu);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    buf = bjson.write(/(?<𝓓𝓸𝓰>dog)/);
 | 
					 | 
				
			||||||
    r = bjson.read(buf, 0, buf.byteLength);
 | 
					 | 
				
			||||||
    assert("sup dog".match(r).groups["𝓓𝓸𝓰"], "dog");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function bjson_test_all()
 | 
					function bjson_test_all()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    var obj;
 | 
					    var obj;
 | 
				
			||||||
@ -198,7 +186,6 @@ function bjson_test_all()
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bjson_test_reference();
 | 
					    bjson_test_reference();
 | 
				
			||||||
    bjson_test_regexp();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bjson_test_all();
 | 
					bjson_test_all();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user