blob: 27f652b597fc47526f4699516fcd9f4d60d7d983 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 10.4.3-1-8-s
description: >
Strict Mode - checking 'this' (FunctionDeclaration includes strict
directive prologue)
flags: [noStrict]
includes: [runTestCase.js]
---*/
function testcase() {
function f() {
"use strict";
return typeof this;
}
return f() === "undefined";
}
runTestCase(testcase);
|