diff --git a/js/tests/js1_5/extensions/regress-367121.js b/js/tests/js1_5/extensions/regress-367121.js index 404796e9f68c..f3fcd0067f41 100755 --- a/js/tests/js1_5/extensions/regress-367121.js +++ b/js/tests/js1_5/extensions/regress-367121.js @@ -91,4 +91,7 @@ function handleLoad() jsTestDriverEnd(); } -window.onload = handleLoad; +if (typeof window != 'undefined') +{ + window.onload = handleLoad; +}