worstperson

Results 56 comments of worstperson

I think it already has tests, it's just that it and a few other datetime setter functions are currently unimplemented. No way to get around needing a js interpreter without...

It'll take a bit for me to find the issue as I need to debug the library to find exactly what triggers it. I'll reply back as soon as I...

js2py/internals/constructors/time_helpers.py, line 45, change it the return value from 1 to 0 This just disables DST in js2py. Surely there is still a bug here, but this seems to correct...

It's asking for tslib (undefined dependency?). Loading it in first resolves that issue ``` import js2py js2py.require(tslib) utils = js2py.require('@1inch/limit-order-protocol-utils') ``` but yields an unexpectedTokenError in pyjsparser.

Js2Py seems to be missing support for this format, this hacky patch to node_import.py will get it working: ``` 92c92,96 < pkg_name = module_name.partition('/')[0] --- > #pkg_name = module_name.partition('/')[0] >...

The error says your code trying to use CryptoJS, but it's not defined. You'll need to import it into your context before running your code.

It's an optional dependency for TypedArray support. Only required if your code needs it.

Not entirely sure without an example, maybe override the function in Javascript and save the argument(s) to a variable to access later: ``` var _console_logs = []; var _console_log =...

If just executing the code is not an option, maybe you can extract what you need from the bytecode disassembly? ``` import js2py import dis context = js2py.EvalJs() context.execute(''' function...

Sorry, I didn't understand at first. I think you can implement it like this in python: ``` import js2py context = js2py.EvalJs() context.execute(''' var XX = []; XX.WSVerifyCookieReq = function...