-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: arr[i].toUpperCase is not a function #540
Comments
Don't trust ui-parser-js module until issue #536 is solved |
@renata-aldi This seems to happen when extending
for...in loops should always check properties with In the meantime, if you don't need to support old browsers, you can replace your
|
My solution to resolve this problem, create a prototype toUpperCase function to prevent error. Object.prototype.toUpperCase = |
i already fixed this when upgrading to 0.7.30 version |
I don't think this was fixed in |
After regenerating a package-lock file just now we're just hit this issue also. Hopefully a fix can get pushed out soon. |
NPM dependencies are not updated in the latest version(1.0.1) |
NPM dependencies are not updated in the latest version(1.0.1) |
Fixed in |
Thanks @faisalman |
we got this error when run test with mocha
Node JS Version : 8.17.0
NPM version : 6.13.4
UA Parser JS Version : 0.7.23
`�[91m<my_project_folder>node_modules/ua-parser-js/dist/ua-parser.min.js:4
(function(window,undefined){"use strict";var LIBVERSION="0.7.28",EMPTY="",UNKNOWN="?",FUNC_TYPE="function",UNDEF_TYPE="undefined",OBJ_TYPE="object",STR_TYPE="string",MAJOR="major",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION="version",ARCHITECTURE="architecture",CONSOLE="console",MOBILE="mobile",TABLET="tablet",SMARTTV="smarttv",WEARABLE="wearable",EMBEDDED="embedded",UA_MAX_LENGTH=255;var AMAZON="Amazon",APPLE="Apple",ASUS="ASUS",BLACKBERRY="BlackBerry",BROWSER="Browser",CHROME="Chrome",EDGE="Edge",FIREFOX="Firefox",GOOGLE="Google",HUAWEI="Huawei",LG="LG",MICROSOFT="Microsoft",MOTOROLA="Motorola",OPERA="Opera",SAMSUNG="Samsung",SONY="Sony",XIAOMI="Xiaomi",ZEBRA="Zebra";var extend=function(regexes,extensions){var mergedRegexes={};for(var i in regexes){if(extensions[i]&&extensions[i].length%2===0){mergedRegexes[i]=extensions[i].concat(regexes[i])}else{mergedRegexes[i]=regexes[i]}}return mergedReg
The text was updated successfully, but these errors were encountered: