summaryrefslogtreecommitdiff
path: root/test/language/expressions/delete/11.4.1-5-a-5-s.js
blob: 88020733c1b7ba26912215fd103d898674235088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 11.4.1-5-a-5-s
description: >
    Strict Mode - SyntaxError is thrown when deleting a variable which
    is a primitive type (boolean)
flags: [onlyStrict]
includes: [runTestCase.js]
---*/

function testcase() {
        var _11_4_1_5 = true;

        try {
            eval("delete _11_4_1_5;");
            return false;
        } catch (e) {
            return e instanceof SyntaxError;
        }
    }
runTestCase(testcase);