PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/js-xdr/src

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

import isUndefined from 'lodash/isUndefined';
import includeIoMixin from './io-mixin';

export const Void = {
  /* jshint unused: false */

  read() {
    return undefined;
  },

  write(value) {
    if (!isUndefined(value)) {
      throw new Error('XDR Write Error: trying to write value to a void slot');
    }
  },

  isValid(value) {
    return isUndefined(value);
  }
};

includeIoMixin(Void);

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


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