mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	* Add missing test for early error * Add missing test for WithBaseObject * Improve coverage for `new.target` * Add test for deletion of SuperReference * Add tests for `in` keyword restrictions * fixup! Improve coverage for `new.target`
		
			
				
	
	
		
			34 lines
		
	
	
		
			826 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			826 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2016 the V8 project authors. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
/*---
 | 
						|
esid: sec-property-accessors-runtime-semantics-evaluation
 | 
						|
es6id: 12.3.2.1
 | 
						|
description: Value when invoked via MemberExpression
 | 
						|
info: |
 | 
						|
  MemberExpression:MemberExpression.IdentifierName
 | 
						|
 | 
						|
  [...]
 | 
						|
  6. Return a value of type Reference whose base value component is bv, whose
 | 
						|
     referenced name component is propertyNameString, and whose strict
 | 
						|
     reference flag is strict.
 | 
						|
 | 
						|
  13.5.1 Runtime Semantics: Evaluation
 | 
						|
 | 
						|
  ExpressionStatement : Expression ;
 | 
						|
 | 
						|
  1. Let exprRef be the result of evaluating Expression.
 | 
						|
  2. Return ? GetValue(exprRef).
 | 
						|
---*/
 | 
						|
 | 
						|
var newTarget = null;
 | 
						|
 | 
						|
var obj = {
 | 
						|
  get m() {
 | 
						|
    newTarget = new.target;
 | 
						|
  }
 | 
						|
};
 | 
						|
 | 
						|
obj.m;
 | 
						|
 | 
						|
assert.sameValue(newTarget, undefined);
 |