vendor/assets/javascripts/generic/web/compatibility.js in better-pdfjs-rails-1.6.380.5 vs vendor/assets/javascripts/generic/web/compatibility.js in better-pdfjs-rails-1.6.422.0

- old
+ new

@@ -10,10 +10,12 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ +/* eslint strict: ["error", "function"] */ +/* eslint-disable no-extend-native */ /* globals VBArray, PDFJS */ (function compatibilityWrapper() { 'use strict'; @@ -268,10 +270,10 @@ } for ( // initialize result and counters var bc = 0, bs, buffer, idx = 0, output = ''; // get next character - buffer = input.charAt(idx++); + (buffer = input.charAt(idx++)); // character found in table? // initialize bit storage and add its ascii value ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer, // and if not first of each 4 characters, // convert the first 8 bits to one ascii character