mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 20:44:43 +02:00
built-ins/Boolean/*: make all indentation consistent (depth & character) (#1417)
This commit is contained in:
parent
93d0256d87
commit
a7ab6b4fd5
@ -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');
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user