GithubHelp home page GithubHelp logo

Comments (6)

asvd avatar asvd commented on July 3, 2024

Looks like a bug in Jailed, I will have to investigate on this by installing Electron.

The disconnect event should not fire first, upon connection it fires either connection event, or failure..

from jailed.

florianb avatar florianb commented on July 3, 2024

Thank you very much - let me know if i can help you.

from jailed.

asvd avatar asvd commented on July 3, 2024

Well actually you can, if you try to debug it yourself ;-)

I will have a look at the issue, but cannot promise when, since I am not familiar with Electron, and besides there is a bunch of tickets for the project, and I have only limited amount of time..

from jailed.

asvd avatar asvd commented on July 3, 2024

Can you maybe include the callstack of the mentioned exception?

from jailed.

florianb avatar florianb commented on July 3, 2024

Sure, i will debug it as soon as i have a clue what the reason may be.

Uncaught TypeError: this._connect is not a function(…)DynamicPlugin @ .../jailed.js:612
(anonymous function) @ VM189:2
InjectedScript._evaluateOn @ VM184:875
InjectedScript._evaluateAndWrap @ VM184:808
InjectedScript.evaluate @ VM184:664

It is worth mentioning that this happens only in the live dev-console after live requiring jailed and executing just a plugin (without any special arguments).

Intercepting the constructor of DynamicPlugin(with debugger; in the jailed.js:611) showed that all methods and attributes were missing at this point besides from this._code and this._initialInterface.

I will try to do some more investigations on this issue (if any promising further tests come in mind).

from jailed.

florianb avatar florianb commented on July 3, 2024

1st Update - running jailed in the Node-REPL (5.5.0) works:

> var code = "application.remote.log('Hello from the plugin!');";
undefined
> var api = { log: console.log };
undefined
> var plugin = new jailed.DynamicPlugin(code, api);
undefined
> Hello from the plugin!

from jailed.

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.