test262/test/language/arguments-object/arguments-caller.js

13 lines
395 B
JavaScript

// Copyright (c) 2016 Kevin Gibbons. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-arguments-exotic-objects
description: arguments.caller does not exist
---*/
function getArguments() {
return arguments;
}
assert.sameValue(Object.getOwnPropertyDescriptor(getArguments(), 'caller'), undefined, 'arguments.caller does not exist');