Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9838

es6 Shims in Window Phone Universal

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.3.2
    • Fix Version/s: None
    • Labels:
    • Environment:

      Build = Windows 8.1 Visual Studio 2015 Community
      Cordova Project = Windows Phone Universal

    • Flags:
      Important

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              DeanB_Develop DeanB
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: