当我在Cordova 5.3.3 + Windows Phone Universal项目中使用es2015(es6)垫片时,我正在考虑JavaScript runtime error
。
运行es6-shim.js
时出错SCRIPT5007: Unhandled exception at line 221, column 7 in ms-appx-web://test/www/scripts/lib/es6-shim/es6-shim.js
0x800a138f - JavaScript runtime error: Unable to get property 'toString' of undefined or null reference
es6-shim.js (221,7)
我使用以下代码进行测试: es-shim v0.33.6,Cordova 5.3.3,Visual Studio Community
<!DOCTYPE html>
<html>
<head>
<script src="scripts/es6-shim/es6-shim.js"></script>
</head>
<body>
<p>Hello, your application is ready!</p>
</body>
</html>
注意: