test262/test/language/statements/function/13.0_4-5gs.js

18 lines
477 B
JavaScript
Raw Normal View History

// Copyright (c) 2012 Ecma International. All rights reserved.
2015-07-17 17:42:45 +02:00
// This code is governed by the BSD license found in the LICENSE file.
/*---
2014-07-25 00:41:42 +02:00
es5id: 13.0_4-5gs
description: >
Strict Mode - SourceElements is evaluated as strict mode code when
a FunctionDeclaration is contained in strict mode code
negative:
phase: parse
type: SyntaxError
flags: [onlyStrict]
---*/
throw "Test262: This statement should not be evaluated.";
function _13_0_4_5_fun() { eval = 42; };