Coder Social home page Coder Social logo

Comments (5)

ggrossetie avatar ggrossetie commented on September 25, 2024

Hello Sylvain,

I think it's related to asciidoctor/asciidoctor.js#299 and chaijs/chai#1109
In short, Opal uses circular references and when you use deep equals, Chai will loop indefinitely.

from opal-node-runtime.

s-leroux avatar s-leroux commented on September 25, 2024

Thank you for your replay Guillaume.

I investigate the issue a little bit more after my initial message. Apparently, after having done some tests, Chai does not break on circular references. And I follow the code on the debugger, and it does not seem to be stuck in an infinite loop.

However, I notice opal is attaching something like 800 methods to the Array and Function prototypes (or maybe just to Object?)--and a deep inspection could result in a combinatory explosion.

I assume there is no easy way to reduce the Opal footprint on the standard objects prototypes?

from opal-node-runtime.

s-leroux avatar s-leroux commented on September 25, 2024

Indeed definitely the same issue as chaijs/chai#1109

from opal-node-runtime.

ggrossetie avatar ggrossetie commented on September 25, 2024

The next version of Opal will fix this issue: opal/opal#1821

from opal-node-runtime.

ggrossetie avatar ggrossetie commented on September 25, 2024

I believe this issue was fixed in https://github.com/Mogztter/opal-node-runtime/releases/tag/v1.0.7
Could you please give it a try (an reopen this issue if it's not the case) ?

from opal-node-runtime.

Related Issues (8)

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.