compat-table icon indicating copy to clipboard operation
compat-table copied to clipboard

non-standard: add arguments.caller

Open claudepache opened this issue 9 years ago • 3 comments

Not to be confused with Function#caller. See :

In theory, arguments.caller is only available in sloppy-mode functions with simple arguments list (poison-pilled otherwise). In practice, removed from most (all?) implementations before supporting strict mode (although the poison-pill is implemented).

Current support :

Test case: (function () { return 'caller' in arguments })().

claudepache avatar Aug 17 '16 09:08 claudepache

It was removed from spec completely: https://github.com/tc39/ecma262/pull/689

chicoxyzzy avatar Nov 22 '16 17:11 chicoxyzzy

It was removed from spec completely:

Yes, and the Non-standard table contains many stuff that is not, will not be, or was removed from spec.

claudepache avatar Nov 23 '16 07:11 claudepache

Also: the stuff that is proposed to be added to that compat table is not the stuff that was removed from spec. The spec just added a poison pill in order that the feature in question be not implemented in strict-mode.

claudepache avatar Nov 23 '16 07:11 claudepache