mozilla/rhino — pull request #82 by anba (2012-08-20 17:42:47+00:00)
Title: Patch for Bug 783797 ("Function calls across multiple global scopes are not handled properly")

Accessing the global scope when creating wrapper types for primitive values wasn't done in a uniform manner, which could lead to inconsistent results when multiple scopes were involved. With this change the current scope is always explicitly passed to every method which may require to wrap primitive values.