If I use the code above, it will crash on:
javax.script.ScriptException: TypeError: Cannot set property "faker" of undefined in src/com/test/faker/faker.js at line number 1
I think this shouldn't be a problem on my side, but with that js faker code which cannot be loaded properly in java script engine.
Can anyone give me a hint what is causing this error and how to fix it?
Tim Moores wrote:I took a quick look around Github, but didn't see a script "faker.js". Can you provide a direct link? It's hard to even speculate what might be going on without seeing the actual JS code.