michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * The value of the internal [[Prototype]] property of the michael@0: * created arguments object is the original Object prototype object, the one michael@0: * that is the initial value of Object.prototype michael@0: * michael@0: * @path ch10/10.6/S10.6_A2.js michael@0: * @description Checking arguments.constructor.prototype===Object.prototype michael@0: */ michael@0: michael@0: //CHECK#1 michael@0: function f1(){ michael@0: return arguments.constructor.prototype; michael@0: } michael@0: try{ michael@0: if(f1() !== Object.prototype){ michael@0: $ERROR('#1: arguments.constructor.prototype === Object.prototype'); michael@0: } michael@0: } michael@0: catch(e){ michael@0: $ERROR("#1: arguments doesn't exists"); michael@0: } michael@0: michael@0: //CHECK#2 michael@0: var f2 = function(){return arguments.constructor.prototype;}; michael@0: try{ michael@0: if(f2() !== Object.prototype){ michael@0: $ERROR('#2: arguments.constructor.prototype === Object.prototype'); michael@0: } michael@0: } michael@0: catch(e){ michael@0: $ERROR("#2: arguments doesn't exists"); michael@0: } michael@0: