[ https://issues.apache.org/jira/browse/CB-4662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve updated CB-4662: ------------------------------ Assignee: Ian Clelland (was: Filip Maj) > Bad code in file autotest? > -------------------------- > > Key: CB-4662 > URL: https://issues.apache.org/jira/browse/CB-4662 > Project: Apache Cordova > Issue Type: Bug > Components: mobile-spec > Affects Versions: 2.9.0 > Reporter: Peter > Assignee: Ian Clelland > Priority: Minor > > By inspection, this code in the File autotests seems incorrect > {code} > function arrayBufferEqualsString(buf, str) { > var buf = new Uint8Array(ab); > var match = buf.length == str.length; > for (var i = 0; match && i < buf.length; i++) { > match = buf[i] == str.charCodeAt(i); > } > return match; > } > {code} > Where does that _ab_ come from? > Ref: > https://github.com/apache/cordova-mobile-spec/blob/master/autotest/tests/file.tests.js -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira