Sha256: bf546da8b6ac3f982c55919169b2f07320b7934868dfb3b82c13f38c72b95a0d
Contents?: true
Size: 539 Bytes
Versions: 236
Compression:
Stored size: 539 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var $getProto = require('../helpers/getProto'); var Type = require('./Type'); // https://262.ecma-international.org/7.0/#sec-ordinarygetprototypeof module.exports = function OrdinaryGetPrototypeOf(O) { if (Type(O) !== 'Object') { throw new $TypeError('Assertion failed: O must be an Object'); } if (!$getProto) { throw new $TypeError('This environment does not support fetching prototypes.'); } return $getProto(O); };
Version data entries
236 entries across 30 versions & 4 rubygems