mirror of https://github.com/tc39/test262.git
built-ins/Symbol/*: make all indentation consistent (depth & character) (#1425)
This commit is contained in:
parent
bc70e0339f
commit
f574680595
|
@ -7,12 +7,12 @@ description: >
|
|||
features: [Symbol]
|
||||
---*/
|
||||
assert.sameValue(
|
||||
Object.getPrototypeOf(Symbol('66')).constructor,
|
||||
Symbol,
|
||||
"The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`"
|
||||
Object.getPrototypeOf(Symbol('66')).constructor,
|
||||
Symbol,
|
||||
"The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`"
|
||||
);
|
||||
assert.sameValue(
|
||||
Object.getPrototypeOf(Object(Symbol('66'))).constructor,
|
||||
Symbol,
|
||||
"The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`"
|
||||
Object.getPrototypeOf(Object(Symbol('66'))).constructor,
|
||||
Symbol,
|
||||
"The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`"
|
||||
);
|
||||
|
|
|
@ -7,7 +7,7 @@ description: >
|
|||
features: [Symbol]
|
||||
---*/
|
||||
assert.sameValue(
|
||||
Object.getPrototypeOf(Symbol('66')),
|
||||
Symbol.prototype,
|
||||
"`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`"
|
||||
Object.getPrototypeOf(Symbol('66')),
|
||||
Symbol.prototype,
|
||||
"`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`"
|
||||
);
|
||||
|
|
|
@ -11,8 +11,8 @@ features: [Symbol.species]
|
|||
---*/
|
||||
|
||||
function getGetterName(obj, name) {
|
||||
var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get;
|
||||
return getter && getter.name;
|
||||
var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get;
|
||||
return getter && getter.name;
|
||||
}
|
||||
|
||||
assert.sameValue(getGetterName(Array, Symbol.species), "get [Symbol.species]");
|
||||
|
@ -20,4 +20,3 @@ assert.sameValue(getGetterName(Map, Symbol.species), "get [Symbol.species]");
|
|||
assert.sameValue(getGetterName(Promise, Symbol.species), "get [Symbol.species]");
|
||||
assert.sameValue(getGetterName(RegExp, Symbol.species), "get [Symbol.species]");
|
||||
assert.sameValue(getGetterName(Set, Symbol.species), "get [Symbol.species]");
|
||||
|
||||
|
|
|
@ -9,8 +9,6 @@ description: Symbol.species is retained on subclassing
|
|||
features: [Symbol.species]
|
||||
---*/
|
||||
|
||||
class MyRegExp extends RegExp {
|
||||
};
|
||||
class MyRegExp extends RegExp {};
|
||||
|
||||
assert.sameValue(MyRegExp[Symbol.species], MyRegExp);
|
||||
|
||||
|
|
Loading…
Reference in New Issue