From cd988902020c45b8e1cf162898183c2a91a51f84 Mon Sep 17 00:00:00 2001 From: daniel baak Date: Tue, 7 Feb 2017 11:12:07 +0100 Subject: [PATCH] replace disallowed (by use strict) delete --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 144e45f..964917d 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ module.exports.decode = function(string) { while (char_nbr < string_len) { var idx = string.charCodeAt(char_nbr++) - 32; if ((idx < 0) || (idx >= decoder.length)) { - delete dest; + dest = undefined; return; } value = (value * 85) + decoder[idx];