15.1.1.3-1.js (453B)
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 esid: sec-undefined 6 description: undefined is not writable, should not throw in non-strict mode 7 flags: [noStrict] 8 ---*/ 9 10 undefined = 5; 11 assert.sameValue(typeof undefined, "undefined", 'typeof undefined'); 12 13 var nosuchproperty; 14 assert.sameValue(nosuchproperty, undefined, 'nosuchproperty'); 15 16 reportCompare(0, 0);