mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* patched an issue with wasmoon randomly asking to resolve proxy references * simplified pyodide and micropython dance by grouping their common utilities together * created an integration test around a worker to main thread input between MicroPython and Lua * commented some weird bugs / funny behaviors around both MicroPython and Pyodide * other minor clean ups
9 lines
306 B
JavaScript
9 lines
306 B
JavaScript
// lazy TOML parser (fast-toml might be a better alternative)
|
|
const TOML_LIB = `https://cdn.jsdelivr.net/npm/basic-toml@0.3.1/es.js`;
|
|
|
|
/**
|
|
* @param {string} text TOML text to parse
|
|
* @returns {object} the resulting JS object
|
|
*/
|
|
export const parse = async (text) => (await import(TOML_LIB)).parse(text);
|