main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
283 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | /* eslint-disable es/no-json -- safe */
|
---|
| 3 | var fails = require('../internals/fails');
|
---|
| 4 |
|
---|
| 5 | module.exports = !fails(function () {
|
---|
| 6 | var unsafeInt = '9007199254740993';
|
---|
| 7 | var raw = JSON.rawJSON(unsafeInt);
|
---|
| 8 | return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
|
---|
| 9 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.