diff options
Diffstat (limited to 'test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js')
-rw-r--r-- | test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js index 1b87a6c6e..5f27c33bf 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js @@ -9,16 +9,20 @@ es5id: 15.2.4.6_A1 description: Creating two objects with the same prototype ---*/ -function USER_FACTORY( name ) { +function USER_FACTORY(name) { this.name = name; - this.getName=function(){return name;}; + this.getName = function() { + return name; + }; } -function FORCEDUSER_FACTORY( name, grade ) { - this.name = name; +function FORCEDUSER_FACTORY(name, grade) { + this.name = name; this.grade = grade; - this.getGrade=function(){return grade;}; + this.getGrade = function() { + return grade; + }; } var proto = new USER_FACTORY("noname"); @@ -48,7 +52,7 @@ assert.sameValue( ///////// ////// // CHECK#3 -if(Number.isPrototypeOf(luke)){ +if (Number.isPrototypeOf(luke)) { $ERROR('#2: Native ECMAScript objects have an internal property called [[Prototype]].'); } // |