assert.sameValue(generator.hasOwnProperty('caller'),false,'Functions created using ArrowFunction syntactic form do not have own property "caller"');
assert.sameValue(generator.hasOwnProperty('arguments'),false,'Functions created using ArrowFunction syntactic form do not have own property "arguments"');
assert.throws(TypeError,function(){
returngenerator.caller;
});
assert.throws(TypeError,function(){
generator.caller={};
});
assert.throws(TypeError,function(){
returngenerator.arguments;
});
assert.throws(TypeError,function(){
generator.arguments={};
});
varGenerator=Object.getPrototypeOf(generator);
varGeneratorFunction=Generator.constructor;
varnewgenerator=newGeneratorFunction();
assert.sameValue(newgenerator.hasOwnProperty('caller'),false,'Generators created using GeneratorFunction constructor do not have own property "caller"');
assert.sameValue(newgenerator.hasOwnProperty('arguments'),false,'Generators created using GeneratorFunction constructor do not have own property "arguments"');