| Index: test/mjsunit/setter-on-constructor-prototype.js
|
| diff --git a/test/mjsunit/setter-on-constructor-prototype.js b/test/mjsunit/setter-on-constructor-prototype.js
|
| index d5718f9c9be8c2c5cc1e3fbdfbb53baf066818d9..a74f7da7b36fbb8233643961a3b1892edf1f8c45 100644
|
| --- a/test/mjsunit/setter-on-constructor-prototype.js
|
| +++ b/test/mjsunit/setter-on-constructor-prototype.js
|
| @@ -35,14 +35,14 @@ function RunTest(ensure_fast_case) {
|
| if (ensure_fast_case) {
|
| %ToFastProperties(C1.prototype);
|
| }
|
| -
|
| +
|
| for (var i = 0; i < 10; i++) {
|
| var c1 = new C1();
|
| assertEquals("undefined", typeof c1.x);
|
| assertEquals(23, c1.y);
|
| }
|
| -
|
| -
|
| +
|
| +
|
| function C2() {
|
| this.x = 23;
|
| };
|
| @@ -51,14 +51,14 @@ function RunTest(ensure_fast_case) {
|
| if (ensure_fast_case) {
|
| %ToFastProperties(C2.prototype.__proto__)
|
| }
|
| -
|
| +
|
| for (var i = 0; i < 10; i++) {
|
| var c2 = new C2();
|
| assertEquals("undefined", typeof c2.x);
|
| assertEquals(23, c2.y);
|
| }
|
| -
|
| -
|
| +
|
| +
|
| function C3() {
|
| this.x = 23;
|
| };
|
| @@ -67,14 +67,14 @@ function RunTest(ensure_fast_case) {
|
| if (ensure_fast_case) {
|
| %ToFastProperties(C3.prototype);
|
| }
|
| -
|
| +
|
| for (var i = 0; i < 10; i++) {
|
| var c3 = new C3();
|
| assertEquals("undefined", typeof c3.x);
|
| assertEquals(23, c3.y);
|
| }
|
| -
|
| -
|
| +
|
| +
|
| function C4() {
|
| this.x = 23;
|
| };
|
| @@ -84,14 +84,14 @@ function RunTest(ensure_fast_case) {
|
| if (ensure_fast_case) {
|
| %ToFastProperties(C4.prototype.__proto__);
|
| }
|
| -
|
| +
|
| for (var i = 0; i < 10; i++) {
|
| var c4 = new C4();
|
| assertEquals("undefined", typeof c4.x);
|
| assertEquals(23, c4.y);
|
| }
|
| -
|
| -
|
| +
|
| +
|
| function D() {
|
| this.x = 23;
|
| };
|
| @@ -99,7 +99,7 @@ function RunTest(ensure_fast_case) {
|
| if (ensure_fast_case) {
|
| %ToFastProperties(D.prototype);
|
| }
|
| -
|
| +
|
| for (var i = 0; i < 10; i++) {
|
| var d = new D();
|
| assertEquals(23, d.x);
|
|
|