{"action":"created","issue":{"url":"https://api.github.com/repos/paulmillr/es6-shim/issues/364","labels_url":"https://api.github.com/repos/paulmillr/es6-shim/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/paulmillr/es6-shim/issues/364/comments","events_url":"https://api.github.com/repos/paulmillr/es6-shim/issues/364/events","html_url":"https://github.com/paulmillr/es6-shim/issues/364","id":112435240,"number":364,"title":"Unhandled exception at line 221","user":{"login":"DeanB2015","id":10567383,"avatar_url":"https://avatars.githubusercontent.com/u/10567383?v=3","gravatar_id":"","url":"https://api.github.com/users/DeanB2015","html_url":"https://github.com/DeanB2015","followers_url":"https://api.github.com/users/DeanB2015/followers","following_url":"https://api.github.com/users/DeanB2015/following{/other_user}","gists_url":"https://api.github.com/users/DeanB2015/gists{/gist_id}","starred_url":"https://api.github.com/users/DeanB2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeanB2015/subscriptions","organizations_url":"https://api.github.com/users/DeanB2015/orgs","repos_url":"https://api.github.com/users/DeanB2015/repos","events_url":"https://api.github.com/users/DeanB2015/events{/privacy}","received_events_url":"https://api.github.com/users/DeanB2015/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paulmillr/es6-shim/labels/needs%20followup","name":"needs followup","color":"FA94FD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-20T18:49:14Z","updated_at":"2015-10-21T00:29:14Z","closed_at":null,"body":"I have a test project using es6-shim (v0.33.6), Cordova 5.3.3 and Windows Phone (Universal).\r\n\r\nI get the following error when I test on Windows Phone:\r\n\r\n    SCRIPT5007: Unhandled exception at line 221, column 7 in ms-appx-web://test/www/scripts/lib/es6-shim/es6-shim.js \r\n    0x800a138f - JavaScript runtime error: Unable to get property 'toString' of undefined or null reference\r\n    es6-shim.js (221,7)\r\n\r\nCordova Mobile(Android) and Web(Chrome, IE, Firefox) are working well.  \r\n\r\nHere's the bare code I used to isolate es6-shim.\r\n\r\n\t<!DOCTYPE html>\r\n\t<html>\r\n\t<head>\r\n\t    <script src=\"scripts/es6-shim/es6-shim.js\"></script>\r\n\t</head>\r\n\t<body>\r\n\t    <p>Hello, your application is ready!</p>\r\n\t    \r\n\t</body>\r\n\t</html>\r\n\r\nNot sure if this is a problem with es6-shim or Cordova.  Any help is greatly appreciated."},"comment":{"url":"https://api.github.com/repos/paulmillr/es6-shim/issues/comments/149743187","html_url":"https://github.com/paulmillr/es6-shim/issues/364#issuecomment-149743187","issue_url":"https://api.github.com/repos/paulmillr/es6-shim/issues/364","id":149743187,"user":{"login":"DeanB2015","id":10567383,"avatar_url":"https://avatars.githubusercontent.com/u/10567383?v=3","gravatar_id":"","url":"https://api.github.com/users/DeanB2015","html_url":"https://github.com/DeanB2015","followers_url":"https://api.github.com/users/DeanB2015/followers","following_url":"https://api.github.com/users/DeanB2015/following{/other_user}","gists_url":"https://api.github.com/users/DeanB2015/gists{/gist_id}","starred_url":"https://api.github.com/users/DeanB2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeanB2015/subscriptions","organizations_url":"https://api.github.com/users/DeanB2015/orgs","repos_url":"https://api.github.com/users/DeanB2015/repos","events_url":"https://api.github.com/users/DeanB2015/events{/privacy}","received_events_url":"https://api.github.com/users/DeanB2015/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T00:29:14Z","updated_at":"2015-10-21T00:29:14Z","body":"@ljharb  Here's the Output > Debug:   \r\n\r\n    'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/3.0)'. \r\n    Exception was thrown at line 140, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138d - JavaScript runtime error: String.prototype.startsWith: 'this' is not a String object\r\n    Exception was thrown at line 1088, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a139e - JavaScript runtime error: Exception thrown and not caught\r\n    Exception was thrown at line 1088, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a139e - JavaScript runtime error: Exception thrown and not caught\r\n    Exception was thrown at line 1088, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a139e - JavaScript runtime error: Exception thrown and not caught\r\n    Exception was thrown at line 1088, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a139e - JavaScript runtime error: Exception thrown and not caught\r\n    Exception was thrown at line 1088, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a139e - JavaScript runtime error: Exception thrown and not caught\r\n    Exception was thrown at line 1088, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a139e - JavaScript runtime error: Exception thrown and not caught\r\n    Exception was thrown at line 1088, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a139e - JavaScript runtime error: Exception thrown and not caught\r\n    Exception was thrown at line 1266, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Invalid operand to 'Object.assign': Object expected\r\n    Exception was thrown at line 2189, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a13f8 - JavaScript runtime error: Promise: an unexpected failure occurred while trying to obtain metadata information\r\n    Exception was thrown at line 2192, column 66 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a13fc - JavaScript runtime error: Promise: 'this' is not a Promise object\r\n    Exception was thrown at line 2797, column 11 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a13fc - JavaScript runtime error: Map: 'this' is not a Map object\r\n    Exception was thrown at line 2827, column 11 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a13fc - JavaScript runtime error: Set: 'this' is not a Set object\r\n    Exception was thrown at line 39, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a13fc - JavaScript runtime error: Map: 'this' is not a Map object\r\n    Exception was thrown at line 39, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a13fc - JavaScript runtime error: Set: 'this' is not a Set object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138a - JavaScript runtime error: Reflect.apply: argument is not a Function object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138a - JavaScript runtime error: Reflect.construct: 'this' is not a Function object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.deleteProperty: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.enumerate: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.has: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.ownKeys: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.iesExtensible: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.preventExtensions: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.defineProperty: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.getOwnPropertyDescriptor: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.get: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.set: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.getPrototypeOf: argument is not an Object\r\n    Exception was thrown at line 3165, column 9 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.setPrototypeOf: argument is not an Object\r\n    Exception was thrown at line 3186, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.setPrototypeOf: argument is not an Object\r\n    Exception was thrown at line 3194, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Reflect.defineProperty: argument is not an Object\r\n    Unhandled exception at line 221, column 7 in ms-appx-web://testing/www/scripts/es6-shim/es6-shim.js\r\n    0x800a138f - JavaScript runtime error: Unable to get property 'toString' of undefined or null reference\r\n\r\nLet me know if you need the code.  I can add to github repository."}}