aboutsummaryrefslogtreecommitdiff
path: root/ports/javascript
AgeCommit message (Collapse)Author
2019-08-28py: Add global default_emit_opt variable to make emit kind persistent.Damien George
mp_compile no longer takes an emit_opt argument, rather this setting is now provided by the global default_emit_opt variable. Now, when -X emit=native is passed as a command-line option, the emitter will be set for all compiled modules (included imports), not just the top-level script. In the future there could be a way to also set this variable from a script. Fixes issue #4267.
2019-08-17py/modmath: Implement math.isclose() for non-complex numbers.stijn
As per PEP 485, this function appeared in for Python 3.5. Configured via MICROPY_PY_MATH_ISCLOSE which is disabled by default, but enabled for the ports which already have MICROPY_PY_MATH_SPECIAL_FUNCTIONS enabled.
2019-07-09javascript: Enable support for frozen bytecode via FROZEN_MPY_DIR.Paul m. p. P
2019-04-28javascript/library: Print data as raw bytes to stdout so unicode works.Damien George
2019-04-28javascript/Makefile: Fix unrepresentable float error by using clamp.Damien George
Otherwise converting large floats to ints will fail (as seen by the builtin_float_hash.py test).
2019-04-28javascript: Pass (error) exit value out from script to process caller.Damien George
2019-04-28javascript/library: Use Buffer.alloc() since new Buffer() is deprecated.Damien George
2019-03-13javascript: Fix Emscripten async load, and to compile with modern clang.Wolf Vollprecht
2019-03-13javascript: Add new port targeting JavaScript via Emscripten.Rami Ali
In this port JavaScript is the underlying "machine" and MicroPython is transmuted into JavaScript by Emscripten. MicroPython can then run under Node.js or in the browser.