Remove getPrototype.

This commit is contained in:
John-David Dalton
2017-01-10 17:44:48 -08:00
parent 003c11c36b
commit b6bdb23ffd
5 changed files with 6 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
import arrayPush from './.internal/arrayPush.js';
import getPrototype from './.internal/getPrototype.js';
import getSymbols from './.internal/getSymbols.js';
import stubArray from './stubArray.js';
@@ -17,7 +16,7 @@ const getSymbolsIn = !nativeGetSymbols ? stubArray : object => {
const result = [];
while (object) {
arrayPush(result, getSymbols(object));
object = getPrototype(object);
object = Object.getPrototypeOf(Object(object));
}
return result;
};