mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			271 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			271 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| load("test-common.js");
 | |
| 
 | |
| try {
 | |
|   function Foo() {
 | |
|     this.x = 123;
 | |
|   }
 | |
| 
 | |
|   assert(Foo.prototype.constructor === Foo);
 | |
| 
 | |
|   var foo = new Foo();
 | |
|   assert(foo.constructor === Foo);
 | |
|   assert(foo.x === 123);
 | |
| 
 | |
|   console.log("PASS");
 | |
| } catch (e) {
 | |
|   console.log("FAIL: " + e);
 | |
| }
 | 
