var DESCRIPTORS = require('../internals/descriptors');
var definePropertyModule = require('../internals/object-define-property');
var anObject = require('../internals/an-object');
var objectKeys = require('../internals/object-keys');

// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
// eslint-disable-next-line es/no-object-defineproperties -- safe
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
  anObject(O);
  var keys = objectKeys(Properties);
  var length = keys.length;
  var index = 0;
  var key;
  while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
  return O;
};

@@ -169,24 +169,89 @@
 n-object');%0A
+var toIndexedObject = require('../internals/to-indexed-object');%0A
 var objectKe
@@ -566,16 +566,59 @@
 ect(O);%0A
+  var props = toIndexedObject(Properties);%0A
   var ke
@@ -774,25 +774,20 @@
 dex++%5D, 
-P
+p
 rop
-ertie
 s%5Bkey%5D);

fix props conversion in the base version of `defineProperties`