remove unnecessary method syntax

This commit is contained in:
Josh Wolfe 2018-01-18 14:12:22 -07:00 committed by Rick Waldron
parent 9d066a8181
commit 4455b1017e
12 changed files with 108 additions and 108 deletions

View File

@ -35,7 +35,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -53,7 +53,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -61,7 +61,7 @@ assert.throws(MyError, function() {
})() + (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -76,7 +76,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -84,7 +84,7 @@ assert.throws(MyError, function() {
})() + (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -99,7 +99,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -107,7 +107,7 @@ assert.throws(MyError, function() {
})() + (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -122,7 +122,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -130,7 +130,7 @@ assert.throws(TypeError, function() {
})() + (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() & (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() & (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() & (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() & (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() | (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() | (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() | (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() | (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() ^ (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() ^ (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() ^ (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() ^ (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() / (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() / (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() / (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() / (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() ** (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() ** (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() ** (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() ** (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() << (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() << (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() << (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() << (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() % (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() % (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() % (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() % (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() * (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() * (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() * (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() * (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() >> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() >> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() >> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() >> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() - (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() - (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() - (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() - (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}

View File

@ -33,7 +33,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new Test262Error("should not be evaluated");
}
@ -51,7 +51,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
throw new MyError();
}
@ -59,7 +59,7 @@ assert.throws(MyError, function() {
})() >>> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -74,7 +74,7 @@ assert.throws(MyError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -82,7 +82,7 @@ assert.throws(MyError, function() {
})() >>> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new MyError();
}
@ -97,7 +97,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return Symbol("1");
}
@ -105,7 +105,7 @@ assert.throws(TypeError, function() {
})() >>> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
throw new Test262Error("should not be evaluated");
}
@ -120,7 +120,7 @@ assert.throws(TypeError, function() {
(function() {
trace += "1";
return {
valueOf() {
valueOf: function() {
trace += "3";
return 1;
}
@ -128,7 +128,7 @@ assert.throws(TypeError, function() {
})() >>> (function() {
trace += "2";
return {
valueOf() {
valueOf: function() {
trace += "4";
return Symbol("1");
}