test262/test/language/statements/function/13.2-27-s.js

24 lines
589 B
JavaScript

// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 13.2-27-s
description: >
StrictMode - enumerating over a function object looking for
'arguments' fails outside of the function
flags: [noStrict]
includes: [runTestCase.js]
---*/
function testcase() {
function foo () {"use strict";}
for (var tempIndex in foo) {
if (tempIndex === "arguments") {
return false;
}
}
return true;
}
runTestCase(testcase);