Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

eval function (Javascript) doesnt run on Firefox for Android plugin

  • 1 odgovor
  • 4 ima ovaj problem
  • 28 views
  • Posljednji odgovor poslao GaL

more options

I'm trying to migrate a desktop plugin into a Firefox for Android plugin , and I need to use the 'eval' function. When I run the plugin on mobile, it crashes when eval(). This is what I need to do:

String adaptionFunction = getConcreteFunctionName(); eval (adaptionFunction);

The first line returns something like this: __Application__.newList() I also tryed this, but didn't work:

var tmpFunc = new Function(adaptionFunction); tmpFunc();

What I can do? This same code runs fine on desktop. Thanks for your time,

GaL

I'm trying to migrate a desktop plugin into a Firefox for Android plugin , and I need to use the 'eval' function. When I run the plugin on mobile, it crashes when eval(). This is what I need to do: String adaptionFunction = getConcreteFunctionName(); eval (adaptionFunction); The first line returns something like this: __Application__.newList() I also tryed this, but didn't work: var tmpFunc = new Function(adaptionFunction); tmpFunc(); What I can do? This same code runs fine on desktop. Thanks for your time, GaL

Izabrano rješenje

There was a logic problem, and eval works fine. I can't delete this post, so I answer here.

Pročitajte ovaj odgovor sa objašnjenjem 👍 1

All Replies (1)

more options

Odabrano rješenje

There was a logic problem, and eval works fine. I can't delete this post, so I answer here.