From 5bb750252df56174843fa26df03c16c7aa683f8d Mon Sep 17 00:00:00 2001 From: Trevin Hofmann Date: Thu, 12 Feb 2015 09:27:42 -0600 Subject: [PATCH] Add inspect method to Opcode. --- lib/opcode.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/opcode.js b/lib/opcode.js index 9e4cfe3..2471fba 100644 --- a/lib/opcode.js +++ b/lib/opcode.js @@ -233,4 +233,13 @@ Opcode.isSmallIntOp = function(opcode) { ((opcode >= Opcode.map.OP_1) && (opcode <= Opcode.map.OP_16))); }; +/** + * Will return a string formatted for the console + * + * @returns {String} Script opcode + */ +Opcode.prototype.inspect = function() { + return ''; +}; + module.exports = Opcode;