GithubHelp home page GithubHelp logo

Comments (2)

linonetwo avatar linonetwo commented on June 9, 2024
// pure nodejs context
console.log(`## Hi!`);
let aaa = 3;

/** tw */

// now in worker_thread with $tw wiki access

let filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))})
console.log(filterExample)
Hi!
ReferenceError: variableMap is not defined at file:///C:/Users/LINONE~1/AppData/Local/Temp/J7iqez/test.mjs:8:55 at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

ReferenceError: aaa is not defined evalmachine.:6 let filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))}) ^ ReferenceError: aaa is not defined at evalmachine.:6:85 at Object.sum ([$:/core/modules/filters/math.js](http://192.168.3.6:5215/#%24%3A%2Fcore%2Fmodules%2Ffilters%2Fmath.js):234:3) at evalmachine.:6:46 at Script.runInContext (node:vm:141:12) at Object.runInContext (node:vm:291:6) at ue (C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.0-prerelease10\resources\app.asar.unpacked\.webpack\main\543.index.worker.js:2:549934) at C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.0-prerelease10\resources\app.asar.unpacked\.webpack\main\543.index.worker.js:2:553550 at processTicksAndRejections (node:internal/process/task_queues:95:5) SourceCode: now in worker_thread with $tw wiki access let filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))}) console.log(filterExample) pushVariablesToTWContext(variableMap);

[$:/state/linonetwo/zx-script/output/test](http://192.168.3.6:5215/#%24%3A%2Fstate%2Flinonetwo%2Fzx-script%2Foutput%2Ftest)

from tidgi-desktop.

linonetwo avatar linonetwo commented on June 9, 2024

5651ea7

from tidgi-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.