10 lines
283 B
JavaScript
10 lines
283 B
JavaScript
|
'use strict';
|
||
|
/* eslint-disable es/no-json -- safe */
|
||
|
var fails = require('../internals/fails');
|
||
|
|
||
|
module.exports = !fails(function () {
|
||
|
var unsafeInt = '9007199254740993';
|
||
|
var raw = JSON.rawJSON(unsafeInt);
|
||
|
return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
|
||
|
});
|