aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/10_Execution_Contexts/10.1_Definitions/S10.1.6_A1_T3.js
blob: c46d24f65c5b107ebbd5267cd7b74b64267aec07 (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
26
27
28
29
30
31
32
33
34
35
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S10.1.6_A1_T3;
 * @section: 10.1.6;
 * @assertion: The activation object is initialised with a property with name arguments and attributes {DontDelete};
 * @description: Checking function which returns "this";
*/


// Converted for Test262 from original Sputnik source

ES5Harness.registerTest( {
id: "S10.1.6_A1_T3",

path: "TestCases/10_Execution_Contexts/10.1_Definitions/S10.1.6_A1_T3.js",

assertion: "The activation object is initialised with a property with name arguments and attributes {DontDelete}",

description: "Checking function which returns \"this\"",

test: function testcase() {
   function f1() {
  if (delete arguments) {
    $ERROR("#1: Function parameters have attribute {DontDelete}" + arguments);
  }
  return arguments;
}

f1();

 }
});