summaryrefslogtreecommitdiff
path: root/test/built-ins/undefined/15.1.1.3-1.js
blob: 586e7b5c9569b87bd60b722918e20c750dcca0ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.1.1.3-1
description: undefined is not writable, should not throw in non-strict mode
flags: [noStrict]
includes: [runTestCase.js]
---*/

function testcase(){
    undefined = 5;
    if(typeof undefined !== "undefined") return false;

    var nosuchproperty;
    if(nosuchproperty !== undefined) return false;
    
    return true;
}

runTestCase(testcase);