keith_miller@apple.com | bcc77f2 | 2016-07-15 06:03:25 +0000 | [diff] [blame] | 1 | // Copyright (c) 2012 Ecma International. All rights reserved. |
2 | // This code is governed by the BSD license found in the LICENSE file. | ||||
3 | /*--- | ||||
4 | es5id: 10.4.2-1-1 | ||||
5 | description: Direct call to eval has context set to local context | ||||
6 | ---*/ | ||||
7 | |||||
8 | var __10_4_2_1_1_1 = "str"; | ||||
9 | function testcase() { | ||||
10 | var __10_4_2_1_1_1 = "str1"; | ||||
11 | assert(eval("\'str1\' === __10_4_2_1_1_1"), 'direct eval'); | ||||
12 | } | ||||
13 | testcase(); |