mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	[javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: 3ced8564a6 targetRevisionAtLastExport: f8c62a49f
This commit is contained in:
		
							parent
							
								
									5594c916bf
								
							
						
					
					
						commit
						5e03c6ce7b
					
				@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "sourceRevisionAtLastExport": "3ced8564a6",
 | 
			
		||||
  "targetRevisionAtLastExport": "f8c62a49f",
 | 
			
		||||
  "sourceRevisionAtLastExport": "a2f7b0c562",
 | 
			
		||||
  "targetRevisionAtLastExport": "5594c916b",
 | 
			
		||||
  "curatedFiles": {
 | 
			
		||||
    "/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET",
 | 
			
		||||
    "/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.js": "DELETED_IN_TARGET",
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,31 @@
 | 
			
		||||
//@ runDefault("--jitPolicyScale=0")
 | 
			
		||||
 | 
			
		||||
function makeTmp() {
 | 
			
		||||
    let tmp = {a: 1};
 | 
			
		||||
    gc();
 | 
			
		||||
    tmp.__proto__ = {};
 | 
			
		||||
    return tmp;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function foo(tmp, obj) {
 | 
			
		||||
    for (let k in tmp) {
 | 
			
		||||
        tmp.__proto__ = {};
 | 
			
		||||
        gc();
 | 
			
		||||
        obj.__proto__ = {};
 | 
			
		||||
 | 
			
		||||
        var result = obj[k];
 | 
			
		||||
        return result;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
foo(makeTmp(), {});
 | 
			
		||||
 | 
			
		||||
let memory = new Uint32Array(100);
 | 
			
		||||
memory[0] = 0x1234;
 | 
			
		||||
 | 
			
		||||
let fooResult = foo(makeTmp(), memory);
 | 
			
		||||
var result = $vm.value(fooResult);
 | 
			
		||||
 | 
			
		||||
if (result != "Undefined")
 | 
			
		||||
    throw "FAIL";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user