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

ASF GitHub Bot commented on CB-10594:
-------------------------------------

Github user dblotsky commented on a diff in the pull request:

    
https://github.com/apache/cordova-plugin-geolocation/pull/69#discussion_r52679939
  
    --- Diff: tests/tests.js ---
    @@ -174,8 +174,12 @@ exports.defineAutoTests = function () {
             describe('error callback', function () {
     
                 var errorWatch = null;
    -            afterEach(function () {
    -                navigator.geolocation.clearWatch(errorWatch);
    +            afterEach(function (done) {
    +                // Workaround to avoid the crash "0x80004004 - JavaScript 
runtime error: Operation aborted" on Windows
    +                setTimeout(function () {
    +                    navigator.geolocation.clearWatch(errorWatch);
    +                    done();
    +                }, 100);
    --- End diff --
    
    This looks like magic. Why does 100ms fix the issue?


> geolocation.spec.10 crashes Windows Phone 8.1
> ---------------------------------------------
>
>                 Key: CB-10594
>                 URL: https://issues.apache.org/jira/browse/CB-10594
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>            Reporter: Sergey Shakhnazarov
>            Assignee: Sergey Shakhnazarov
>              Labels: test
>
> 0x80004004 - JavaScript runtime error: Operation aborted



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to