GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/patches/@silvia-odwyer%[email protected] at dev · koji/opencode 285 lines (240 loc) · 11.9 KB / Copy path@silvia-odwyer%[email protected]File metadata and controls285 lines (240 loc) · 11.9 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 diff --git a/photon_rs.js b/photon_rs.js index 8f4144d..29a964a 100644 --- a/photon_rs.js +++ b/photon_rs.js @@ -1,6 +1,7 @@ let imports = {}; -imports['__wbindgen_placeholder__'] = module.exports; +const __wbindgen_placeholder__ = {}; +imports['__wbindgen_placeholder__'] = __wbindgen_placeholder__; let wasm; const { TextEncoder, TextDecoder } = require(`util`); @@ -4272,12 +4273,12 @@ class Rgba { } module.exports.Rgba = Rgba; -module.exports.__wbg_new_abda76e883ba8a5f = function() { +__wbindgen_placeholder__.__wbg_new_abda76e883ba8a5f = function() { const ret = new Error(); return ret; }; -module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { +__wbindgen_placeholder__.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { const ret = arg1.stack; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; @@ -4285,7 +4286,7 @@ module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; -module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { +__wbindgen_placeholder__.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { let deferred0_0; let deferred0_1; try { @@ -4297,7 +4298,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { } }; -module.exports.__wbg_instanceof_Window_c4b70662a0d2c5ec = function(arg0) { +__wbindgen_placeholder__.__wbg_instanceof_Window_c4b70662a0d2c5ec = function(arg0) { let result; try { result = arg0 instanceof Window; @@ -4308,42 +4309,42 @@ module.exports.__wbg_instanceof_Window_c4b70662a0d2c5ec = function(arg0) { return ret; }; -module.exports.__wbg_document_e5c1786dea6542e4 = function(arg0) { +__wbindgen_placeholder__.__wbg_document_e5c1786dea6542e4 = function(arg0) { const ret = arg0.document; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; -module.exports.__wbg_body_e70ae6abd01ae584 = function(arg0) { +__wbindgen_placeholder__.__wbg_body_e70ae6abd01ae584 = function(arg0) { const ret = arg0.body; return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }; -module.exports.__wbg_createElement_5d4c76f218b78145 = function() { return handleError(function (arg0, arg1, arg2) { +__wbindgen_placeholder__.__wbg_createElement_5d4c76f218b78145 = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.createElement(getStringFromWasm0(arg1, arg2)); return ret; }, arguments) }; -module.exports.__wbg_width_4c6f0048d64cf86b = function(arg0) { +__wbindgen_placeholder__.__wbg_width_4c6f0048d64cf86b = function(arg0) { const ret = arg0.width; return ret; }; -module.exports.__wbg_height_21f0d3fd8f753394 = function(arg0) { +__wbindgen_placeholder__.__wbg_height_21f0d3fd8f753394 = function(arg0) { const ret = arg0.height; return ret; }; -module.exports.__wbg_width_79e0847ed5883b03 = function(arg0) { +__wbindgen_placeholder__.__wbg_width_79e0847ed5883b03 = function(arg0) { const ret = arg0.width; return ret; }; -module.exports.__wbg_height_e4e4e4779f8feac0 = function(arg0) { +__wbindgen_placeholder__.__wbg_height_e4e4e4779f8feac0 = function(arg0) { const ret = arg0.height; return ret; }; -module.exports.__wbg_data_fda507064d127f5b = function(arg0, arg1) { +__wbindgen_placeholder__.__wbg_data_fda507064d127f5b = function(arg0, arg1) { const ret = arg1.data; const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc); const len1 = WASM_VECTOR_LEN; @@ -4351,12 +4352,12 @@ module.exports.__wbg_data_fda507064d127f5b = function(arg0, arg1) { getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; -module.exports.__wbg_newwithu8clampedarrayandsh_1fddccb3a94a5e05 = function() { return handleError(function (arg0, arg1, arg2, arg3) { +__wbindgen_placeholder__.__wbg_newwithu8clampedarrayandsh_1fddccb3a94a5e05 = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = new ImageData(getClampedArrayU8FromWasm0(arg0, arg1), arg2 >>> 0, arg3 >>> 0); return ret; }, arguments) }; -module.exports.__wbg_instanceof_CanvasRenderingContext2d_3abbe7ec7af32cae = function(arg0) { +__wbindgen_placeholder__.__wbg_instanceof_CanvasRenderingContext2d_3abbe7ec7af32cae = function(arg0) { let result; try { result = arg0 instanceof CanvasRenderingContext2D; @@ -4367,24 +4368,24 @@ module.exports.__wbg_instanceof_CanvasRenderingContext2d_3abbe7ec7af32cae = fun return ret; }; -module.exports.__wbg_drawImage_fede06db74e39a60 = function() { return handleError(function (arg0, arg1, arg2, arg3) { +__wbindgen_placeholder__.__wbg_drawImage_fede06db74e39a60 = function() { return handleError(function (arg0, arg1, arg2, arg3) { arg0.drawImage(arg1, arg2, arg3); }, arguments) }; -module.exports.__wbg_drawImage_f395c8e43c79a909 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { +__wbindgen_placeholder__.__wbg_drawImage_f395c8e43c79a909 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { arg0.drawImage(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }, arguments) }; -module.exports.__wbg_getImageData_5e1c242046e6b59e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { +__wbindgen_placeholder__.__wbg_getImageData_5e1c242046e6b59e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.getImageData(arg1, arg2, arg3, arg4); return ret; }, arguments) }; -module.exports.__wbg_putImageData_a8b3e177ee06d521 = function() { return handleError(function (arg0, arg1, arg2, arg3) { +__wbindgen_placeholder__.__wbg_putImageData_a8b3e177ee06d521 = function() { return handleError(function (arg0, arg1, arg2, arg3) { arg0.putImageData(arg1, arg2, arg3); }, arguments) }; -module.exports.__wbg_instanceof_HtmlCanvasElement_25d964a0dde6717e = function(arg0) { +__wbindgen_placeholder__.__wbg_instanceof_HtmlCanvasElement_25d964a0dde6717e = function(arg0) { let result; try { result = arg0 instanceof HTMLCanvasElement; @@ -4395,93 +4396,93 @@ module.exports.__wbg_instanceof_HtmlCanvasElement_25d964a0dde6717e = function(a return ret; }; -module.exports.__wbg_width_dc225e55343b745e = function(arg0) { +__wbindgen_placeholder__.__wbg_width_dc225e55343b745e = function(arg0) { const ret = arg0.width; return ret; }; -module.exports.__wbg_setwidth_488780db69b08846 = function(arg0, arg1) { +__wbindgen_placeholder__.__wbg_setwidth_488780db69b08846 = function(arg0, arg1) { arg0.width = arg1 >>> 0; }; -module.exports.__wbg_height_3a8bec2f3fe71b26 = function(arg0) { +__wbindgen_placeholder__.__wbg_height_3a8bec2f3fe71b26 = function(arg0) { const ret = arg0.height; return ret; }; -module.exports.__wbg_setheight_1761808c18403921 = function(arg0, arg1) { +__wbindgen_placeholder__.__wbg_setheight_1761808c18403921 = function(arg0, arg1) { arg0.height = arg1 >>> 0; }; -module.exports.__wbg_getContext_fc99dbd3a9a7e318 = function() { return handleError(function (arg0, arg1, arg2) { +__wbindgen_placeholder__.__wbg_getContext_fc99dbd3a9a7e318 = function() { return handleError(function (arg0, arg1, arg2) { const ret = arg0.getContext(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); }, arguments) }; -module.exports.__wbg_settextContent_f82a86a8df347e1c = function(arg0, arg1, arg2) { +__wbindgen_placeholder__.__wbg_settextContent_f82a86a8df347e1c = function(arg0, arg1, arg2) { arg0.textContent = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2); }; -module.exports.__wbg_appendChild_fa3b00dade9fc4cf = function() { return handleError(function (arg0, arg1) { +__wbindgen_placeholder__.__wbg_appendChild_fa3b00dade9fc4cf = function() { return handleError(function (arg0, arg1) { const ret = arg0.appendChild(arg1); return ret; }, arguments) }; -module.exports.__wbg_newnoargs_e643855c6572a4a8 = function(arg0, arg1) { +__wbindgen_placeholder__.__wbg_newnoargs_e643855c6572a4a8 = function(arg0, arg1) { const ret = new Function(getStringFromWasm0(arg0, arg1)); return ret; }; -module.exports.__wbg_call_f96b398515635514 = function() { return handleError(function (arg0, arg1) { +__wbindgen_placeholder__.__wbg_call_f96b398515635514 = function() { return handleError(function (arg0, arg1) { const ret = arg0.call(arg1); return ret; }, arguments) }; -module.exports.__wbg_self_b9aad7f1c618bfaf = function() { return handleError(function () { +__wbindgen_placeholder__.__wbg_self_b9aad7f1c618bfaf = function() { return handleError(function () { const ret = self.self; return ret; }, arguments) }; -module.exports.__wbg_window_55e469842c98b086 = function() { return handleError(function () { +__wbindgen_placeholder__.__wbg_window_55e469842c98b086 = function() { return handleError(function () { const ret = window.window; return ret; }, arguments) }; -module.exports.__wbg_globalThis_d0957e302752547e = function() { return handleError(function () { +__wbindgen_placeholder__.__wbg_globalThis_d0957e302752547e = function() { return handleError(function () { const ret = globalThis.globalThis; return ret; }, arguments) }; -module.exports.__wbg_global_ae2f87312b8987fb = function() { return handleError(function () { +__wbindgen_placeholder__.__wbg_global_ae2f87312b8987fb = function() { return handleError(function () { const ret = global.global; return ret; }, arguments) }; -module.exports.__wbindgen_is_undefined = function(arg0) { +__wbindgen_placeholder__.__wbindgen_is_undefined = function(arg0) { const ret = arg0 === undefined; return ret; }; -module.exports.__wbg_buffer_fcbfb6d88b2732e9 = function(arg0) { +__wbindgen_placeholder__.__wbg_buffer_fcbfb6d88b2732e9 = function(arg0) { const ret = arg0.buffer; return ret; }; -module.exports.__wbg_new_bc5d9aad3f9ac80e = function(arg0) { +__wbindgen_placeholder__.__wbg_new_bc5d9aad3f9ac80e = function(arg0) { const ret = new Uint8Array(arg0); return ret; }; -module.exports.__wbg_set_4b3aa8445ac1e91c = function(arg0, arg1, arg2) { +__wbindgen_placeholder__.__wbg_set_4b3aa8445ac1e91c = function(arg0, arg1, arg2) { arg0.set(arg1, arg2 >>> 0); }; -module.exports.__wbg_length_d9c4ded7e708c6a1 = function(arg0) { +__wbindgen_placeholder__.__wbg_length_d9c4ded7e708c6a1 = function(arg0) { const ret = arg0.length; return ret; }; -module.exports.__wbindgen_debug_string = function(arg0, arg1) { +__wbindgen_placeholder__.__wbindgen_debug_string = function(arg0, arg1) { const ret = debugString(arg1); const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; @@ -4489,16 +4490,16 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) { getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; -module.exports.__wbindgen_throw = function(arg0, arg1) { +__wbindgen_placeholder__.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); }; -module.exports.__wbindgen_memory = function() { +__wbindgen_placeholder__.__wbindgen_memory = function() { const ret = wasm.memory; return ret; }; -module.exports.__wbindgen_init_externref_table = function() { +__wbindgen_placeholder__.__wbindgen_init_externref_table = function() { const table = wasm.__wbindgen_export_2; const offset = table.grow(4); table.set(0, undefined); @@ -4509,7 +4510,8 @@ module.exports.__wbindgen_init_externref_table = function() { ; }; -const path = require('path').join(__dirname, 'photon_rs_bg.wasm'); +// Allow opencode's Bun compiled binary to point photon-node at its embedded wasm asset. +const path = globalThis.__OPENCODE_PHOTON_WASM_PATH || require('path').join(__dirname, 'photon_rs_bg.wasm'); const bytes = require('fs').readFileSync(path); const wasmModule = new WebAssembly.Module(bytes); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |