diff --git a/src/core/qrcode/decoder/BitMatrixParser.ts b/src/core/qrcode/decoder/BitMatrixParser.ts index 28dd828f..d5c91707 100644 --- a/src/core/qrcode/decoder/BitMatrixParser.ts +++ b/src/core/qrcode/decoder/BitMatrixParser.ts @@ -214,7 +214,7 @@ export default class BitMatrixParser { if (this.parsedFormatInfo === null) { return; // We have no format information, and have no data mask } - const dataMask = DataMask.values[this.parsedFormatInfo.getDataMask()]; + const dataMask = DataMask.values.get(this.parsedFormatInfo.getDataMask()); const dimension = this.bitMatrix.getHeight(); dataMask.unmaskBitMatrix(this.bitMatrix, dimension); }