dukpy
dukpy copied to clipboard
Simple JavaScript interpreter for Python
In evaljs, trailing commas are allowed in array declarations, but when using Array constructors, it causes a crash: ``` import dukpy testArray1 = ''' var array1 = [1, 2, 3,...
In `dukpy.evaljs`, the math function `Math.trunc` raises the exception `_dukpy.JSRuntimeError: TypeError: undefined not callable`. Other math functions, such as `Math.floor`, work. To reproduce in Python 3 (tested in 3.6.9): ```...
Resolves #62
@amol- First of all thanks so much for putting up this interesting project! As you have also mentioned webassets in your presentation on EuroPython 2016. https://www.slideshare.net/__amol__/pyconit7-dukpy-webassets-free-yourself-from-nodejs-chains _I wondered whether it...
Hey, I'm wondering if DukPy can compile a file rather than a string? ### Details What I mean is that I want to be able to provide the path to...
Any plans to upgrade LessCss source files?
![Imgur](https://i.imgur.com/4fkBu0m.png) See what I do in the screenshot, I definded a class in `es5js` and then call `evaljs` the first time, everything seems OK. But when I tried to used...
I passed a JavaScript file I have been working on into dukpy's `evaljs` and got an error. I found the offending line and did some testing and discovered that it...
Hi, is (and how) it possible to specify my js-requirements in setup.py. Do you have a simple example for that? Is there a hook or something i can register the...
How can I use it to execute es6 code, Are there any similar examples