built-ins/Boolean/*: make all indentation consistent (depth & character) (#1417)

This commit is contained in:
Rick Waldron 2018-02-15 15:54:27 -05:00 committed by Leo Balter
parent 93d0256d87
commit a7ab6b4fd5
25 changed files with 199 additions and 191 deletions

View File

@ -13,7 +13,9 @@ description: transferring to the other objects
//CHECK#1
try {
var s1 = {x: 1};
var s1 = {
x: 1
};
s1.toString = Boolean.prototype.toString;
var v1 = s1.toString();
$ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError');
@ -26,7 +28,9 @@ catch(e){
//CHECK#1
try {
var s2 = {x: 1};
var s2 = {
x: 1
};
s2.myToString = Boolean.prototype.toString;
var v2 = s2.myToString();
$ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError');

View File

@ -13,7 +13,9 @@ description: transferring to the other objects
//CHECK#1
try {
var s1 = {x: 1};
var s1 = {
x: 1
};
s1.valueOf = Boolean.prototype.valueOf;
var v1 = s1.valueOf();
$ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');
@ -26,7 +28,9 @@ catch(e){
//CHECK#1
try {
var s2 = {x: 1};
var s2 = {
x: 1
};
s2.myValueOf = Boolean.prototype.valueOf;
var v2 = s2.myValueOf();
$ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError');