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 /
release-zalgo /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
Async.js
368
B
-rw-r--r--
2023-08-21 05:40
Sync.js
491
B
-rw-r--r--
2023-08-21 05:40
Thenable.js
1.05
KB
-rw-r--r--
2023-08-21 05:40
constants.js
158
B
-rw-r--r--
2023-08-21 05:40
unwrapSync.js
1.18
KB
-rw-r--r--
2023-08-21 05:40
Save
Rename
'use strict' const constants = require('./constants') const unwrapSync = require('./unwrapSync') // Behaves like a Promise, though the then() and catch() methods are unbound and // must be called with the instance as their thisArg. // // The executor must either return a value or throw a rejection reason. It is // not provided resolver or rejecter methods. The executor may return another // thenable. class Thenable { constructor (executor) { try { this.result = unwrapSync(executor()) this.state = constants.RESOLVED } catch (err) { this.result = err this.state = constants.REJECTED } } then (onFulfilled, onRejected) { if (this.state === constants.RESOLVED && typeof onFulfilled === 'function') { return new Thenable(() => onFulfilled(this.result)) } if (this.state === constants.REJECTED && typeof onRejected === 'function') { return new Thenable(() => onRejected(this.result)) } return this } catch (onRejected) { return this.then(null, onRejected) } } module.exports = Thenable