Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50654 views
1
'use strict';
2
3
var ES6 = require('./es6');
4
var assign = require('./helpers/assign');
5
6
var ES7 = assign(ES6, {
7
// https://github.com/tc39/ecma262/pull/60
8
SameValueNonNumber: function SameValueNonNumber(x, y) {
9
if (typeof x === 'number' || typeof x !== typeof y) {
10
throw new TypeError('SameValueNonNumber requires two non-number values of the same type.');
11
}
12
return this.SameValue(x, y);
13
}
14
});
15
16
module.exports = ES7;
17
18