Undefined (or misspelled) list entry is not diagnosed and future iterations proceed up to the undefined entry #70

pyjsorg opened this Issue Apr 27, 2012 · 1 comment


None yet

1 participant

pyjsorg commented Apr 27, 2012

What steps will reproduce the problem?

  1. Define a list, where one element is an undefined variable, e.g.
    l=["alpha","beta",fubar,"delta" # where fubar is undefined
  2. iterate over the list (e.g. "for entry in l:")
  3. Observe which elements iterated over

What is the expected output? What do you see instead?
Expect an exception related to the undefined variable.
Instead the iteration silently stops when the undefined variable is reached.

What version of Pyjamas are you using? Latest Git from sourceforge (last commit Sept. 9)

Testcase attached

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=653 (October 12, 2011 16:42:35)

pyjsorg commented Apr 27, 2012

From luke.lei...@gmail.com on February 05, 2012 16:35:11:
interesting one! could you kindly adapt this into a LibTest example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment