You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "DeanB (JIRA)" <ji...@apache.org> on 2015/10/24 14:41:27 UTC

[jira] [Commented] (CB-9838) es6 Shims in Window Phone Universal

    [ https://issues.apache.org/jira/browse/CB-9838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14972580#comment-14972580 ] 

DeanB commented on CB-9838:
---------------------------

Has anyone else had this problem?  If anyone has some time to replicate the issue, it's easy to setup.

Create a Cordova project and add the following HTML to the <content src="index.html" /> or whatever src html you're using.

<!DOCTYPE html>
 <html>
 <head>
 <script src="scripts/es6-shim/es6-shim.js"></script>
 </head>
 <body>
 <p>Hello, your application is ready!</p>

</body>
 </html>

Download the latest es6-shim.js from https://github.com/paulmillr/es6-shim and add to project.
Update the <script src....> location
Test with Windows Phone 10.

 Do you get 'Unhandled exception'?

This would be a huge help!

Thanks

> es6 Shims in Window Phone Universal
> -----------------------------------
>
>                 Key: CB-9838
>                 URL: https://issues.apache.org/jira/browse/CB-9838
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: 5.3.2
>         Environment: Build = Windows 8.1 Visual Studio 2015 Community
> Cordova Project = Windows Phone Universal
>            Reporter: DeanB
>              Labels: build, windows
>
> I have a test project using es6-shim (v0.33.6), Cordova 5.3.3 and Windows Phone (Universal).
> I am getting errors when I add es6 shims to my project:  Files testing es6-shim.js and  core-js.
> I get the following error when I test on Windows Phone Universal:
> 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)
> Cordova Mobile(Android) and Web(Chrome, IE, Firefox) are working well. 
> Here's the bare code I used to isolate es6-shim.
> <!DOCTYPE html>
> <html>
> <head>
>     <script src="scripts/es6-shim/es6-shim.js"></script>
> </head>
> <body>
>     <p>Hello, your application is ready!</p>
> </body>
> </html>
> I contacted the creator of es6-shim and he seems to think this is a Cordova issue:
> https://github.com/paulmillr/es6-shim/issues/364



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org