source: frontend/node_modules/es-abstract/2019/SameValueNonNumber.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 402 bytes
Line 
1'use strict';
2
3var $TypeError = require('es-errors/type');
4
5var SameValue = require('./SameValue');
6
7// https://262.ecma-international.org/7.0/#sec-samevaluenonnumber
8
9module.exports = function SameValueNonNumber(x, y) {
10 if (typeof x === 'number' || typeof x !== typeof y) {
11 throw new $TypeError('SameValueNonNumber requires two non-number values of the same type.');
12 }
13 return SameValue(x, y);
14};
Note: See TracBrowser for help on using the repository browser.