summaryrefslogtreecommitdiff
path: root/js/src/Ice/browser/TimerUtil.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-10-23 19:44:50 +0200
committerJose <jose@zeroc.com>2018-10-23 19:44:50 +0200
commit02914c716c671f7900861e6d611be27afe673cf4 (patch)
tree241017bd97aa87bd986490b0f2030250938cd7a9 /js/src/Ice/browser/TimerUtil.js
parentFixed slice2matlab generated code type for dictionary data members (diff)
downloadice-02914c716c671f7900861e6d611be27afe673cf4.tar.bz2
ice-02914c716c671f7900861e6d611be27afe673cf4.tar.xz
ice-02914c716c671f7900861e6d611be27afe673cf4.zip
Fix JavaScript Safari es5/worker tests not working
Diffstat (limited to 'js/src/Ice/browser/TimerUtil.js')
-rw-r--r--js/src/Ice/browser/TimerUtil.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/Ice/browser/TimerUtil.js b/js/src/Ice/browser/TimerUtil.js
index abe9ddfde97..f3f66c33da2 100644
--- a/js/src/Ice/browser/TimerUtil.js
+++ b/js/src/Ice/browser/TimerUtil.js
@@ -191,7 +191,7 @@ if(typeof navigator !== "undefined" &&
//
Ice.Timer = createTimerObject();
}
-else if(typeof WorkerGlobalScope !== 'undefined' && this instanceof WorkerGlobalScope)
+else if(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
{
//
// If we are running in a worker don't spawn a separate worker for the timer