Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/undefined/15.1.1.3-1.js

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