11.13.1-4-1.js (810B)
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 /*--- 5 info: PutValue operates only on references (see step 3.b). 6 es5id: 11.13.1-4-1 7 description: > 8 simple assignment creates property on the global object if 9 LeftHandSide is an unresolvable reference 10 flags: [noStrict] 11 ---*/ 12 13 function foo() { 14 __ES3_1_test_suite_test_11_13_1_unique_id_3__ = 42; 15 } 16 foo(); 17 18 var desc = Object.getOwnPropertyDescriptor(this, '__ES3_1_test_suite_test_11_13_1_unique_id_3__'); 19 20 assert.sameValue(desc.value, 42, 'desc.value'); 21 assert.sameValue(desc.writable, true, 'desc.writable'); 22 assert.sameValue(desc.enumerable, true, 'desc.enumerable'); 23 assert.sameValue(desc.configurable, true, 'desc.configurable'); 24 25 reportCompare(0, 0);