mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Some tests for `eval` assert the equality of key enumeration on the global object, comparing the ordering when the object is referenced through eval. Based on the test bodies and the "info" field in their metadata, these tests appear to have been written under the mistaken impression that erroneous creation of an environment record would be observable through the `this` value. In reality, the value in such cases resolves to the global object. That renders these tests redundant and overly complex--none of the distinctions between each test actually demonstrates a different behavior. Remove the redundant tests and introduce three new tests asserting the correct resolution of the `this` keyword for direct eval code from within the global scope and from within function scope.