title: How can i call the js function in karate feature file with 1 argument
body: <p>In one of my test scenarios I make the request and I want to collect data from the response to an array and here for this purpose I've defined the js function within <code>karate-config.js</code> which accepts one argument.</p>
  <p>When I call it, I'm always get the same error, but when i use another function with static value it works nice, but when i try to pass the dynamic object (response from the pre-request) it fails.
  Here is the error:</p>
  <blockquote>
  <p>Logger feature call failed: classpath:integration/base_oai_pmh_tests/mod-configuration-integration-cases.feature<br />
  arg: null<br />
  mod-configuration-integration-cases.feature:14 - Failed generating bytecode for :33</p>
  </blockquote>
  <p>The object that i pass to the function is okay and its definitely not null.</p>
  <p><a href="https://i.stack.imgur.com/RGAIp.png" rel="nofollow noreferrer">here is the function into config file</a><br />
  <a href="https://i.stack.imgur.com/335mp.png" rel="nofollow noreferrer">here is the scenrio with js function usage</a></p>
  <p>I've tried these possible solutions as well and they are failed too:</p>
  <ul>
  <li>define js function in background</li>
  <li>define js function in scenario</li>
  </ul>