You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Chromium 30 (which is the version of the Android 4.2.2 WebView) Function.name is not spec complaint, and vuex-typescript relies on it being so. More specifically (function () { var x = function () { }; return x.name; })() should return "x", but in Chromium 30 returns "" since it is an anonymous function. For this situation I found using classes with the Hander decorator is absolutely necessary.
vuex-typescript/src/tests/withModules/store/system/system.ts
Line 6 in 105d219
In Chromium 30 (which is the version of the Android 4.2.2 WebView)
Function.name
is not spec complaint, and vuex-typescript relies on it being so. More specifically(function () { var x = function () { }; return x.name; })()
should return"x"
, but in Chromium 30 returns""
since it is an anonymous function. For this situation I found using classes with theHander
decorator is absolutely necessary.Since
Function.name
is an es2015 feature https://www.ecma-international.org/ecma-262/6.0/#sec-setfunctionname, and some vuex-typescript users will be targeting mobiles, it would be helpful documenting this use case; perhaps in the readme.The text was updated successfully, but these errors were encountered: