From bf148ca92c61d60c7765df320c17c51b63ac3b60 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 20 Oct 2021 12:37:25 +0530 Subject: [PATCH] update jshintrc to es6 and stop polyfilling for apps --- .jshintrc | 1 + www/common/boot2.js | 5 ----- www/common/sframe-boot2.js | 5 ----- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.jshintrc b/.jshintrc index c95e9dbc4..761c69159 100644 --- a/.jshintrc +++ b/.jshintrc @@ -12,6 +12,7 @@ "unused": true, "futurehostile":true, "browser": true, + "esversion": 6, "predef": [ "console", "define", diff --git a/www/common/boot2.js b/www/common/boot2.js index d143da87d..097d76489 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -54,11 +54,6 @@ define([ }; } - // RPC breaks if you don't support Number.MAX_SAFE_INTEGER - if (Number && !Number.MAX_SAFE_INTEGER) { - Number.MAX_SAFE_INTEGER = 9007199254740991; - } - var failStore = function () { console.error(new Error('wut')); require(['jquery'], function ($) { diff --git a/www/common/sframe-boot2.js b/www/common/sframe-boot2.js index 66a93545f..647a520af 100644 --- a/www/common/sframe-boot2.js +++ b/www/common/sframe-boot2.js @@ -13,11 +13,6 @@ define([ }; } - // RPC breaks if you don't support Number.MAX_SAFE_INTEGER - if (Number && !Number.MAX_SAFE_INTEGER) { - Number.MAX_SAFE_INTEGER = 9007199254740991; - } - var mkFakeStore = function () { var fakeStorage = { getItem: function (k) { return fakeStorage[k]; },