function fakeobj(addr) {
    var a = []
    for (var i = 0; i < 100; i++)
        a.push({});             // Array must be of type ArrayWithContiguous

    addr = addr.asDouble();
    return a.slice(0, {valueOf: function() { a.length = 0; a = [addr]; return 4; }})[3];
}
// This allows crafting of fake JavaScript objects in the VM.
This allows crafting of fake JavaScript objects in the VM.
This allows crafting of fake JavaScript objects in the VM .
function fakeobj(addr) {
    var a = []
    for (var i = 0; i < 100; i++)
        a.push({});             
    addr = addr.asDouble();
    return a.slice(0, {valueOf: function() { a.length = 0; a = [addr]; return 4; }})[3];
}
function fakeobj ( addr ) { var a = [ ] for ( var i = 0 ; i < 100 ; i ++ ) a . push ( { } ) ; addr = addr . asDouble ( ) ; return a . slice ( 0 , { valueOf : function ( ) { a . length = 0 ; a = [ addr ] ; return 4 ; } } ) [ 3 ] ; }
This allows crafting of fake JavaScript objects in the VM.
This allows crafting of fake JavaScript objects in the VM .
// Array must be of type ArrayWithContiguous