summaryrefslogtreecommitdiff
path: root/test/language/expressions/delete/11.4.1-5-a-8-s.js
blob: 721bae15fd75f60e8631100320a07b207de479d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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-8-s
description: Strict Mode - SyntaxError is thrown when deleting a function object
flags: [onlyStrict]
---*/

        var funObj = function () { };
assert.throws(SyntaxError, function() {
            eval("delete funObj;");
});