mirror of
				https://github.com/flynx/object.js.git
				synced 2025-10-30 19:10:11 +00:00 
			
		
		
		
	added base Error object with some tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									b53ecc5448
								
							
						
					
					
						commit
						3bfd570662
					
				
							
								
								
									
										16
									
								
								object.js
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								object.js
									
									
									
									
									
								
							| @ -267,6 +267,22 @@ function(base, obj, non_strict){ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | //---------------------------------------------------------------------
 | ||||||
|  | // Helper objects/constructors...
 | ||||||
|  | 
 | ||||||
|  | BOOTSTRAP(function(){ | ||||||
|  | 
 | ||||||
|  | 	// Error with some JS quirks fixed...
 | ||||||
|  | 	//
 | ||||||
|  | 	module.Error = | ||||||
|  | 	Constructor('Error', Error, { | ||||||
|  | 		get name(){ | ||||||
|  | 			return this.constructor.name }, | ||||||
|  | 	}) | ||||||
|  | 
 | ||||||
|  | }) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| //---------------------------------------------------------------------
 | //---------------------------------------------------------------------
 | ||||||
| // Prototype chain content access...
 | // Prototype chain content access...
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "ig-object", |   "name": "ig-object", | ||||||
|   "version": "5.4.13", |   "version": "5.4.14", | ||||||
|   "description": "", |   "description": "", | ||||||
|   "main": "object.js", |   "main": "object.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user