mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:12:45 +00:00 
			
		
		
		
	LibJS: Implement Object(value) constructor
Not sure why we didn't have this yet, it's super simple :^)
This commit is contained in:
		
							parent
							
								
									501cef2bd7
								
							
						
					
					
						commit
						2645dfafcf
					
				
					 2 changed files with 9 additions and 1 deletions
				
			
		|  | @ -5,4 +5,9 @@ test("basic functionality", () => { | |||
| 
 | ||||
|     expect(typeof Object()).toBe("object"); | ||||
|     expect(typeof new Object()).toBe("object"); | ||||
| 
 | ||||
|     expect(typeof Object(42)).toBe("object"); | ||||
|     expect(Object(42).valueOf()).toBe(42); | ||||
|     expect(typeof Object("foo")).toBe("object"); | ||||
|     expect(Object("foo").valueOf()).toBe("foo"); | ||||
| }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh