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

This commit is contained in:
Rick Waldron 2018-02-15 15:41:33 -05:00 committed by Leo Balter
parent bc70e0339f
commit f574680595
4 changed files with 12 additions and 15 deletions

View File

@ -7,12 +7,12 @@ description: >
features: [Symbol] features: [Symbol]
---*/ ---*/
assert.sameValue( assert.sameValue(
Object.getPrototypeOf(Symbol('66')).constructor, Object.getPrototypeOf(Symbol('66')).constructor,
Symbol, Symbol,
"The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`" "The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`"
); );
assert.sameValue( assert.sameValue(
Object.getPrototypeOf(Object(Symbol('66'))).constructor, Object.getPrototypeOf(Object(Symbol('66'))).constructor,
Symbol, Symbol,
"The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`" "The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`"
); );

View File

@ -7,7 +7,7 @@ description: >
features: [Symbol] features: [Symbol]
---*/ ---*/
assert.sameValue( assert.sameValue(
Object.getPrototypeOf(Symbol('66')), Object.getPrototypeOf(Symbol('66')),
Symbol.prototype, Symbol.prototype,
"`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`" "`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`"
); );

View File

@ -11,8 +11,8 @@ features: [Symbol.species]
---*/ ---*/
function getGetterName(obj, name) { function getGetterName(obj, name) {
var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get; var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get;
return getter && getter.name; return getter && getter.name;
} }
assert.sameValue(getGetterName(Array, Symbol.species), "get [Symbol.species]"); 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(Promise, Symbol.species), "get [Symbol.species]");
assert.sameValue(getGetterName(RegExp, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(RegExp, Symbol.species), "get [Symbol.species]");
assert.sameValue(getGetterName(Set, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(Set, Symbol.species), "get [Symbol.species]");

View File

@ -9,8 +9,6 @@ description: Symbol.species is retained on subclassing
features: [Symbol.species] features: [Symbol.species]
---*/ ---*/
class MyRegExp extends RegExp { class MyRegExp extends RegExp {};
};
assert.sameValue(MyRegExp[Symbol.species], MyRegExp); assert.sameValue(MyRegExp[Symbol.species], MyRegExp);