blob: ed3e398417c92127181b279d3fa5d13cc5749cdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// 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-49-s
description: >
Strict Mode - checking 'this' (FunctionExpression with a strict
directive prologue defined within a FunctionExpression)
flags: [noStrict]
includes:
- runTestCase.js
- fnGlobalObject.js
---*/
function testcase() {
var f1 = function () {
var f = function () {
"use strict";
return typeof this;
}
return (f()==="undefined") && (this===fnGlobalObject());
}
return f1();
}
runTestCase(testcase);
|