com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26)

Jenkins JIRA | Kirill Shepitko | 1 year ago
  1. 0

    I wrote an integration test for my post-build action aka Publisher following the guidelines in https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test to test configuration round-trip. To prevent test from failing with Javascript scripts I set JenkinsRule.WebClient.setThrowExceptionOnScriptError(false). However, after this I got the following in my test output console: {code} Sep 04, 2015 12:01:13 PM com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine handleJavaScriptException INFO: Caught script exception ======= EXCEPTION START ======== EcmaError: lineNumber=[26] column=[0] lineSource=[ if (inputs[i].type == "checkbox" || inputs[i].type == "radio") {] name=[TypeError] sourceName=[http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js] message=[TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:458) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:76) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl$ExecutingJobTracker.run(JavaScriptJobManagerImpl.java:98) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3652) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3630) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3658) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3677) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3696) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2223) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2216) at script.isModifyingButton(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:26) at script.(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:57) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:879) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:486) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:451) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522) ... 14 more Enclosed exception: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3652) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3630) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3658) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3677) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3696) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2223) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2216) at script.isModifyingButton(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:26) at script.(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:57) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:879) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:486) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:451) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:458) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:76) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl$ExecutingJobTracker.run(JavaScriptJobManagerImpl.java:98) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) == CALLING JAVASCRIPT == function () { var configForm = document.getElementsByName("config"); if (configForm.length > 0) { configForm = configForm[0]; } else { configForm = document.getElementsByName("viewConfig")[0]; } YAHOO.util.Event.on($(configForm), "submit", clearConfirm, this); var buttons = configForm.getElementsByTagName("button"); var name; for (var i = 0; i < buttons.length; i++) { name = buttons[i].parentNode.parentNode.getAttribute("name"); if (name == "Submit" || name == "Apply" || name == "OK") { $(buttons[i]).on("click", function () { needToConfirm = false; }); } else { if (isModifyingButton(buttons[i])) { $(buttons[i]).on("click", confirm); } } } var inputs = configForm.getElementsByTagName("input"); for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "checkbox" || inputs[i].type == "radio") { $(inputs[i]).on("click", confirm); } else { $(inputs[i]).on("input", confirm); } } inputs = configForm.getElementsByTagName("select"); for (var i = 0; i < inputs.length; i++) { $(inputs[i]).on("change", confirm); } inputs = configForm.getElementsByTagName("textarea"); for (var i = 0; i < inputs.length; i++) { $(inputs[i]).on("input", confirm); } } ======= EXCEPTION END ======== {code} This doesn't affect the test result, but is weird. With the mentioned line removed exception disappears.

    Jenkins JIRA | 1 year ago | Kirill Shepitko
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26)
  2. 0

    I wrote an integration test for my post-build action aka Publisher following the guidelines in https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test to test configuration round-trip. To prevent test from failing with Javascript scripts I set JenkinsRule.WebClient.setThrowExceptionOnScriptError(false). However, after this I got the following in my test output console: {code} Sep 04, 2015 12:01:13 PM com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine handleJavaScriptException INFO: Caught script exception ======= EXCEPTION START ======== EcmaError: lineNumber=[26] column=[0] lineSource=[ if (inputs[i].type == "checkbox" || inputs[i].type == "radio") {] name=[TypeError] sourceName=[http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js] message=[TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:458) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:76) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl$ExecutingJobTracker.run(JavaScriptJobManagerImpl.java:98) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3652) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3630) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3658) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3677) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3696) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2223) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2216) at script.isModifyingButton(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:26) at script.(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:57) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:879) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:486) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:451) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522) ... 14 more Enclosed exception: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3652) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3630) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3658) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3677) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3696) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2223) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2216) at script.isModifyingButton(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:26) at script.(http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js:57) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:879) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:486) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:451) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:458) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:76) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl$ExecutingJobTracker.run(JavaScriptJobManagerImpl.java:98) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) == CALLING JAVASCRIPT == function () { var configForm = document.getElementsByName("config"); if (configForm.length > 0) { configForm = configForm[0]; } else { configForm = document.getElementsByName("viewConfig")[0]; } YAHOO.util.Event.on($(configForm), "submit", clearConfirm, this); var buttons = configForm.getElementsByTagName("button"); var name; for (var i = 0; i < buttons.length; i++) { name = buttons[i].parentNode.parentNode.getAttribute("name"); if (name == "Submit" || name == "Apply" || name == "OK") { $(buttons[i]).on("click", function () { needToConfirm = false; }); } else { if (isModifyingButton(buttons[i])) { $(buttons[i]).on("click", confirm); } } } var inputs = configForm.getElementsByTagName("input"); for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "checkbox" || inputs[i].type == "radio") { $(inputs[i]).on("click", confirm); } else { $(inputs[i]).on("input", confirm); } } inputs = configForm.getElementsByTagName("select"); for (var i = 0; i < inputs.length; i++) { $(inputs[i]).on("change", confirm); } inputs = configForm.getElementsByTagName("textarea"); for (var i = 0; i < inputs.length; i++) { $(inputs[i]).on("input", confirm); } } ======= EXCEPTION END ======== {code} This doesn't affect the test result, but is weird. With the mentioned line removed exception disappears.

    Jenkins JIRA | 1 year ago | Kirill Shepitko
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26)
  3. 0

    HtmlUnit / Mailing Lists

    sourceforge.net | 4 months ago
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "modBox" of undefined ( )
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HtmlUnit / Mailing Lists

    sourceforge.net | 4 months ago
    net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call method "modBox" of undefined ( )
  6. 0

    Unit testing a plugin with global configuration properties

    Google Groups | 2 years ago | andrew...@customs.govt.nz
    net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "section" is not defined. (http://localhost:54546/jenkins/adjuncts/da4d8661/lib/form/breadcrumb-config-outline/init.js#3) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3652) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3630) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3715) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1759) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1698) at script.(http://localhost:54546/jenkins/adjuncts/da4d8661/lib/form/breadcrumb-config-outline/init.js:3) at script.(http://localhost:54546/jenkins/static/da4d8661/scripts/prototype.js:5662)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. net.sourceforge.htmlunit.corejs.javascript.EcmaError

      TypeError: Cannot call method "contains" of undefined (http://localhost:54301/jenkins/adjuncts/2bdd1129/lib/form/confirm.js#26)

      at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError()
    2. HtmlUnit Core JS
      ScriptRuntime.getPropFunctionAndThis
      1. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3652)
      2. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3630)
      3. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3658)
      4. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3677)
      5. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3696)
      6. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2223)
      7. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2216)
      7 frames