Sha256: 805e56ef8899d7b441412870027a6f2ee2f34186dbf5d291e6130c6f3be8398a
Contents?: true
Size: 580 Bytes
Versions: 14
Compression:
Stored size: 580 Bytes
Contents
const AbstractHandler = require('./AbstractHandler') class InvokeStaticMethodHandler extends AbstractHandler { constructor() { super() } process(command) { try { const {payload} = command let type = payload[0] let methodName = payload[1] let args = payload.slice(2) return Reflect.apply(type[methodName], undefined, args) } catch (error) { return this.process_stack_trace(error, this.constructor.name) } } } module.exports = new InvokeStaticMethodHandler()
Version data entries
14 entries across 7 versions & 1 rubygems