Do not allow (non-hex-prefixed) strings to be treated as arrayish.

This commit is contained in:
Richard Moore 2017-06-30 14:38:27 -04:00
parent 1b3b117b06
commit b4d622b02b

@ -7,7 +7,7 @@ var defineProperty = require('./properties.js').defineProperty;
var throwError = require('./throw-error'); var throwError = require('./throw-error');
function isArrayish(value) { function isArrayish(value) {
if (!value || parseInt(value.length) != value.length) { if (!value || parseInt(value.length) != value.length || typeof(value) === 'string') {
return false; return false;
} }