Skip to content

Latest Firefox release breaks when lots of routes being used and only on Windows 7 #13

@javascriptlove

Description

@javascriptlove

With the latest Firefox release (Firefox Quantum) our service stopped working reporting an error of too big call stack. We have a couple hundreds routes, multiplied by 8 languages, resulting in more than 1000 routes. The problem lies in this line calling next() and then it calls next() inside and so on..
https://github.com/iron-meteor/iron-middleware-stack/blob/master/lib/middleware_stack.js#L188

  var next = Meteor.bindEnvironment(function boundNext (err) {

Apparently the call stack is pretty limited on windows 7, and it crashes on client side... I came up with something like this, it works fine at the moment but i'm worried about hidden consequences? #12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions