You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
453 B

3 months ago
  1. 'use strict';
  2. /* eslint-disable es/no-json -- safe */
  3. var fails = require('../internals/fails');
  4. module.exports = !fails(function () {
  5. var unsafeInt = '9007199254740993';
  6. // eslint-disable-next-line es/no-nonstandard-json-properties -- feature detection
  7. var raw = JSON.rawJSON(unsafeInt);
  8. // eslint-disable-next-line es/no-nonstandard-json-properties -- feature detection
  9. return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
  10. });