| Index: test/mjsunit/function-prototype.js
|
| diff --git a/test/mjsunit/function-prototype.js b/test/mjsunit/function-prototype.js
|
| index c5a5487dd0cbfe4f9ef4d8bb91b809f1059e13d3..76026210597718faab4f2daaa522d2762799352b 100644
|
| --- a/test/mjsunit/function-prototype.js
|
| +++ b/test/mjsunit/function-prototype.js
|
| @@ -29,7 +29,7 @@
|
| // prototype used for instances in that case should be the initial
|
| // object prototype. ECMA-262 13.2.2.
|
| function TestNonObjectPrototype(value) {
|
| - function F() {};
|
| + function F() {}
|
| F.prototype = value;
|
| var f = new F();
|
| assertEquals(value, F.prototype);
|
| @@ -42,7 +42,7 @@ values.forEach(TestNonObjectPrototype);
|
|
|
|
|
| // Test moving between non-object and object values.
|
| -function F() {};
|
| +function F() {}
|
| var f = new F();
|
| assertEquals(f.__proto__, F.prototype);
|
| F.prototype = 42;
|
| @@ -61,7 +61,7 @@ assertEquals(f.__proto__, F.prototype);
|
| // functions.
|
| function GetPrototypeOf(f) {
|
| return f.prototype;
|
| -};
|
| +}
|
|
|
| // Seed the GetPrototypeOf function to enable the fast case
|
| // optimizations.
|
| @@ -93,6 +93,6 @@ assertEquals(87, GetPrototypeOf({prototype:87}));
|
| // Check the prototype is not enumerable, for compatibility with
|
| // safari. This is deliberately incompatible with ECMA262, 15.3.5.2.
|
| var foo = new Function("return x");
|
| -var result = ""
|
| +var result = "";
|
| for (var n in foo) result += n;
|
| assertEquals(result, "");
|
|
|