mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -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
21 lines
397 B
JavaScript
21 lines
397 B
JavaScript
const { isArray } = Array;
|
|
|
|
const { assign, create, defineProperties, defineProperty } = Object;
|
|
|
|
const { all, resolve } = new Proxy(Promise, {
|
|
get: ($, name) => $[name].bind($),
|
|
});
|
|
|
|
const absoluteURL = (path, base = location.href) => new URL(path, base).href;
|
|
|
|
export {
|
|
isArray,
|
|
assign,
|
|
create,
|
|
defineProperties,
|
|
defineProperty,
|
|
all,
|
|
resolve,
|
|
absoluteURL,
|
|
};
|