Giter VIP home page Giter VIP logo

forEach, when used in a script, throws "Object #<Object> has no method 'forEach'" about minq HOT 5 CLOSED

kurttheviking avatar kurttheviking commented on July 23, 2024
forEach, when used in a script, throws "Object # has no method 'forEach'"

from minq.

Comments (5)

kurttheviking avatar kurttheviking commented on July 23, 2024

error between keyboard and chair

this was in fact a forEach being called on something that was expected to be an array but was in fact undefined; the error was bubbling to the forEach promise which was a bit of a red herring

from minq.

junosuarez avatar junosuarez commented on July 23, 2024

interesting! I'm going to leave this open because it should have caught that better. The forEach is not Array.prototype.forEach, since it works on a streaming document collection cursor.

from minq.

junosuarez avatar junosuarez commented on July 23, 2024

@kurttheviking I'm going through open minq issues and noticed this. Do you have the original code from test.js mentioned in that stack trace? Or do you remember what I'd need to do to come up with a reproduction case?

from minq.

kurttheviking avatar kurttheviking commented on July 23, 2024

i dont have it handy and this issue is a bit fuzzy in my memory; if i encounter it again ill provide additional repro details with a failing test

from minq.

junosuarez avatar junosuarez commented on July 23, 2024

Okay, the specific TypeError is from the version of v8 in node 0.10.26 (v8 3.14.5.9). In newer v8s it's a "x is not a function" message.

I'm going to close this issue.

from minq.

Related Issues (19)

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.