PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/borsh/borsh-ts/test/fuzz/transaction-example

Просмотр файла: enums.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Enum {
    constructor(properties) {
        if (Object.keys(properties).length !== 1) {
            throw new Error('Enum can only take single value');
        }
        Object.keys(properties).map((key) => {
            this[key] = properties[key];
            this.enum = key;
        });
    }
}
exports.Enum = Enum;
class Assignable {
    constructor(properties) {
        Object.keys(properties).map((key) => {
            this[key] = properties[key];
        });
    }
}
exports.Assignable = Assignable;

Выполнить команду


Для локальной разработки. Не используйте в интернете!