Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
object.assign /
Delete
Unzip
Name
Size
Permission
Date
Action
auto.js
36
B
-rw-r--r--
2023-11-11 22:35
browserShim.js
158
B
-rw-r--r--
2023-11-11 22:35
hasSymbols.js
1.58
KB
-rw-r--r--
2023-11-11 22:35
implementation.js
1.38
KB
-rw-r--r--
2023-11-11 22:35
index.js
532
B
-rw-r--r--
2023-11-11 22:35
package.json
2.25
KB
-rw-r--r--
2023-11-11 22:35
polyfill.js
1.27
KB
-rw-r--r--
2023-11-11 22:35
shim.js
305
B
-rw-r--r--
2023-11-11 22:35
Save
Rename
'use strict'; var implementation = require('./implementation'); var lacksProperEnumerationOrder = function () { if (!Object.assign) { return false; } /* * v8, specifically in node 4.x, has a bug with incorrect property enumeration order * note: this does not detect the bug unless there's 20 characters */ var str = 'abcdefghijklmnopqrst'; var letters = str.split(''); var map = {}; for (var i = 0; i < letters.length; ++i) { map[letters[i]] = letters[i]; } var obj = Object.assign({}, map); var actual = ''; for (var k in obj) { actual += k; } return str !== actual; }; var assignHasPendingExceptions = function () { if (!Object.assign || !Object.preventExtensions) { return false; } /* * Firefox 37 still has "pending exception" logic in its Object.assign implementation, * which is 72% slower than our shim, and Firefox 40's native implementation. */ var thrower = Object.preventExtensions({ 1: 2 }); try { Object.assign(thrower, 'xy'); } catch (e) { return thrower[1] === 'y'; } return false; }; module.exports = function getPolyfill() { if (!Object.assign) { return implementation; } if (lacksProperEnumerationOrder()) { return implementation; } if (assignHasPendingExceptions()) { return implementation; } return Object.assign; };