So I'm trying to use a JS bignum library, despite not knowing JS. That's probably my first mistake. I'm using JSBN which is allegedly in Google's JS benchmark.
The line is, exactly, no more or less than:
var ret = base.modPowInt(exp, mod);
... base, exp, and mod are all perfectly fine bignums, that other bignum functions from the same library work on.
But if I try to use it, the script goes from working to failing silently. I've tried everything I can think of.
If I get any more frustrated, I might start pulling out my hair.
All Shadow priest spells that deal Fire damage now appear green.
Big freaky cereal boxes of death.