2014-07-22 01:09:02 +02:00
|
|
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
2015-07-17 17:42:45 +02:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
2014-07-22 01:09:02 +02:00
|
|
|
|
|
|
|
/*---
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 10.6-13-a-1
|
2014-07-22 01:09:02 +02:00
|
|
|
description: >
|
|
|
|
In non-strict mode, arguments object should have its own 'callee'
|
|
|
|
property defined (Step 13.a)
|
2023-09-11 14:30:58 +02:00
|
|
|
includes: [propertyHelper.js]
|
2015-05-08 17:27:52 +02:00
|
|
|
flags: [noStrict]
|
2014-07-22 01:09:02 +02:00
|
|
|
---*/
|
|
|
|
|
2023-09-13 13:34:46 +02:00
|
|
|
Object.defineProperty(Object.prototype, "callee", {
|
|
|
|
value: 1,
|
|
|
|
writable: false,
|
|
|
|
configurable: true
|
|
|
|
});
|
2014-07-22 01:09:02 +02:00
|
|
|
|
2023-09-13 13:34:46 +02:00
|
|
|
var argObj = (function () { return arguments })();
|
2014-07-22 01:09:02 +02:00
|
|
|
|
2023-09-11 14:30:58 +02:00
|
|
|
assert.sameValue(typeof argObj.callee, "function");
|
2014-07-22 01:09:02 +02:00
|
|
|
|
2023-09-11 14:30:58 +02:00
|
|
|
verifyProperty(argObj, "callee", {
|
|
|
|
writable: true,
|
|
|
|
enumerable: false,
|
|
|
|
configurable: true,
|
|
|
|
});
|