es2016.js 454 B

12345678910111213141516
  1. 'use strict';
  2. var ES2015 = require('./es2015');
  3. var assign = require('./helpers/assign');
  4. var ES2016 = assign(assign({}, ES2015), {
  5. // https://github.com/tc39/ecma262/pull/60
  6. SameValueNonNumber: function SameValueNonNumber(x, y) {
  7. if (typeof x === 'number' || typeof x !== typeof y) {
  8. throw new TypeError('SameValueNonNumber requires two non-number values of the same type.');
  9. }
  10. return this.SameValue(x, y);
  11. }
  12. });
  13. module.exports = ES2016;