mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			552 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			552 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2019 Leo Balter. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
esid: sec-object.create
 | 
						|
description: >
 | 
						|
  Throws a TypeError if the Properties argument is null
 | 
						|
info: |
 | 
						|
  Object.create ( O, Properties )
 | 
						|
 | 
						|
  3. If Properties is not undefined, then
 | 
						|
    a. Return ? ObjectDefineProperties(obj, Properties).
 | 
						|
 | 
						|
  Runtime Semantics: ObjectDefineProperties ( O, Properties )
 | 
						|
 | 
						|
  2. Let props be ? ToObject(Properties).
 | 
						|
---*/
 | 
						|
 | 
						|
assert.throws(TypeError, function() {
 | 
						|
  Object.create({}, null);
 | 
						|
});
 |