script: minor.

This commit is contained in:
Christopher Jeffrey 2017-07-10 05:47:00 -07:00
parent 4771f2d0a8
commit cf795e1cd3
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ Opcode.fromSymbol = function fromSymbol(name) {
name = name.toUpperCase();
if (!util.startsWith(name, 'OP_'))
name = 'OP_' + name;
name = `OP_${name}`;
op = common.opcodes[name];
assert(op != null, 'Unknown opcode.');

View File

@ -2721,7 +2721,7 @@ Script.prototype.fromString = function fromString(code) {
symbol = symbol.toUpperCase();
if (!util.startsWith(symbol, 'OP_'))
symbol = 'OP_' + symbol;
symbol = `OP_${symbol}`;
if (opcodes[symbol] == null) {
if (op[0] === '\'') {