update jshintrc to es6 and stop polyfilling for apps

This commit is contained in:
ansuz 2021-10-20 12:37:25 +05:30
parent eb4563b914
commit bf148ca92c
3 changed files with 1 additions and 10 deletions

View File

@ -12,6 +12,7 @@
"unused": true,
"futurehostile":true,
"browser": true,
"esversion": 6,
"predef": [
"console",
"define",

View File

@ -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 ($) {

View File

@ -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]; },