Skip to content

fix unexpected global varible in loop #275

@xiangnanscu

Description

@xiangnanscu

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/exif-js/exif.js b/node_modules/exif-js/exif.js
index 35395cf..1984373 100644
--- a/node_modules/exif-js/exif.js
+++ b/node_modules/exif-js/exif.js
@@ -738,7 +738,7 @@
 
     function getStringFromDB(buffer, start, length) {
         var outstr = "";
-        for (n = start; n < start+length; n++) {
+        for (var n = start; n < start+length; n++) {
             outstr += String.fromCharCode(buffer.getUint8(n));
         }
         return outstr;

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions