blob: c0017683fa76a023050776064597c8328e5fa291 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// |reftest| error:SyntaxError
'use strict';
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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]
---*/
$DONOTEVALUATE();
function _13_0_4_5_fun() { eval = 42; };
|