summaryrefslogtreecommitdiff
path: root/src/node_modules/es-abstract/helpers/getProto.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_modules/es-abstract/helpers/getProto.js')
-rw-r--r--src/node_modules/es-abstract/helpers/getProto.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/node_modules/es-abstract/helpers/getProto.js b/src/node_modules/es-abstract/helpers/getProto.js
new file mode 100644
index 0000000..af10fd8
--- /dev/null
+++ b/src/node_modules/es-abstract/helpers/getProto.js
@@ -0,0 +1,15 @@
+'use strict';
+
+var GetIntrinsic = require('../GetIntrinsic');
+
+var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true);
+var $ArrayProto = GetIntrinsic('%Array.prototype%');
+
+module.exports = originalGetProto || (
+ // eslint-disable-next-line no-proto
+ [].__proto__ === $ArrayProto
+ ? function (O) {
+ return O.__proto__; // eslint-disable-line no-proto
+ }
+ : null
+);