Urara-Blog/node_modules/.pnpm-store/v3/files/61/23efe995f05b2a3729d7dd9bb17a53aa67977947594f85fdfc67bf3db77629f8f12e5fb93760704b1a8b625fa12462428c49046e2dfff8b39a379cdeee09ba
2022-08-14 01:14:53 +08:00

16 lines
450 B
Text

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var SameValue = require('./SameValue');
// https://262.ecma-international.org/7.0/#sec-samevaluenonnumber
module.exports = function SameValueNonNumber(x, y) {
if (typeof x === 'number' || typeof x !== typeof y) {
throw new $TypeError('SameValueNonNumber requires two non-number values of the same type.');
}
return SameValue(x, y);
};