@gjsify/vm 0.51.1
“Node.js vm module for Gjs”
JavaScript file under libCalls eval() with an identifier argument
SHA-2567feb09c10e1810cb2de580d41ab2408aee3104b4dc05c39cb5b7c79597d1b241
MaleculeH(Po)
Evidence
1import{__name}from"./_virtual/_rolldown/runtime.js";const contextSymbol=Symbol(`vm.context`);function runInThisContext(code,_options){return eval(code)}function runInNewContext(e,t,n){let r=t||{},i=Object.keys(r),a=i.map(e=>r[e]);return Function(...i,`return eval(${JSON.stringify(e)})`)(...a)}function runInContext(e,t,n){return runInNewContext(e,t)}function createContext(e){let t=e||{};return Object.defineProperty(t,contextSymbol,{value:!0,enumerable:!1}),t}function isContext(e){if(typeof e!=`object`||!e)throw TypeError(`The "object" argument must be of type object. Received ${e===null?`null`:`type ${typeof e}`}`);return e[contextSymbol]===!0}function compileFunction(e,t,n){return Function(...t||[],e)}var Script=class{_code;constructor(e,t){this._code=e}runInThisContext(_options){return eval(this._code)}runInNewContext(e,t){return runInNew …
1/**
2 * Re-exports native `node:vm` for use in Node.js builds.
3 *
4 * On Node, `node:vm` is built into the runtime — so a Node-target
5 * bundle that imports `@gjsify/vm` is routed here by the
6 * resolver's `gjsify.runtimes.node === "native"` rule. This avoids dragging
7 * the GJS polyfill into Node bundles entirely.
8 *
9 * GJS bundles do NOT consul …
9:62… fy/vm`'s
10 * own `lib/esm/index.js` (the polyfill).
11 */
12export * from 'node:vm';
13export { default } from 'node:vm';
1import"./_virtual/_rolldown/runtime.js";const e=Symbol(`vm.context`);function _enotsup(e){let t=Error(`@gjsify/vm: ${e} is not supported in the browser polyfill`);return t.code=`ENOTSUP`,t}function runInThisContext(e,t){return(0,eval)(e)}function runInNewContext(e,t,n){let r=t||{},i=Object.keys(r),a=i.map(e=>r[e]);return Function(...i,`return eval(${JSON.stringify(e)})`)(...a)}function runInContext(e,t,n){return runInNewContext(e,t)}function createContext(t){let n=t||{};return Object.defineProperty(n,e,{value:!0,enumerable:!1}),n}function isContext(t){if(typeof t!=`object`||!t)throw TypeError(`The "ob …
1:627… t be of type object. Received ${t===null?`null`:`type ${typeof t}`}`);return t[e]===!0}function compileFunction(e,t,n){return Function(...t||[],e)}var Script=class{_code;constructor(e,t){this._code=e}runInThisContext(e){return(0,eval)(this._code)}runInNewContext(e,t){return runInNewContext(this._code,e)}runInContext(e,t){return runInNewContext(this._code,e)}createCachedDa …
No evidence locations were recorded for this file. Raw result