diff --git a/rsdecoder.js b/rsdecoder.js index c110c43..d89c362 100644 --- a/rsdecoder.js +++ b/rsdecoder.js @@ -132,7 +132,7 @@ function ReedSolomonDecoder(field) if (numErrors == 1) { // shortcut - return new Array(errorLocator.getCoefficient(1)); + return [ errorLocator.getCoefficient(1) ]; } var result = new Array(numErrors); var e = 0;