2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: "''arguments'' variable overrides ActivationObject.arguments"
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 13_A15_T4
|
2014-07-22 01:09:02 +02:00
|
|
|
description: >
|
|
|
|
Declaring a variable named with "arguments" and following a
|
|
|
|
"return" statement within a function body
|
2015-03-23 17:34:52 +01:00
|
|
|
flags: [noStrict]
|
2014-07-22 01:09:02 +02:00
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
THE_ANSWER="Answer to Life, the Universe, and Everything";
|
|
|
|
|
|
|
|
function __func(){
|
|
|
|
return typeof arguments;
|
|
|
|
var arguments = THE_ANSWER;
|
|
|
|
};
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#1
|
|
|
|
if (__func(42,42,42) !== "object") {
|
|
|
|
$ERROR('#1: __func(42,42,42) === "object". Actual: __func(42,42,42)==='+__func(42,42,42));
|
|
|
|
}
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|