Evaluating a function definition leads to an out of memory error in playground

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.12.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 1
    • Iteration U (Jan 27 - Feb 10)
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      We evaluate the last statement of a playground when returning a result. If that last statement is a declaration of a function, it leads to an unexpected out of memory error. We should investigate the cause and fix it.

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      1. Open a new playground
      2. Write: function a() {}
      3. Try to run it.

      Expected Results

      What do you expect to happen?

      Successfully run and return i.e. undefined

      Actual Results

      What do you observe is happening?

      An internal error has occurred. The playground services have been restored. This can occur when the playground runner runs out of memory.
      h3. Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Nikola Irinchev
            Reporter:
            Gagik Amaryan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: