Skip to content

Commit 5f48f8e

Browse files
committed
Add discouraged feature for Function.prototype.caller and arguments
Related-to: web-platform-dx#2564 (comment)
1 parent 330a8fd commit 5f48f8e

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

Diff for: features/functions-caller-arguments.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Function caller and arguments
2+
description: The `caller` and `arguments` properties of a non-strict mode `Function` object return the function that called it and the arguments it was called with. Not to be confused with the `arguments` variable in a function body's local scope.
3+
group: javascript
4+
spec: https://tc39.es/ecma262/multipage/error-handling-and-language-extensions.html#sec-forbidden-extensions
5+
discouraged:
6+
according_to: https://tc39.es/ecma262/multipage/error-handling-and-language-extensions.html#sec-forbidden-extensions
7+
compat_features:
8+
- javascript.builtins.Function.arguments
9+
- javascript.builtins.Function.caller

Diff for: features/functions-caller-arguments.yml.dist

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Generated from: functions-caller-arguments.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "1"
8+
chrome_android: "18"
9+
edge: "12"
10+
firefox: "1"
11+
firefox_android: "4"
12+
safari: "3"
13+
safari_ios: "1"
14+
compat_features:
15+
# baseline: false
16+
# support:
17+
# chrome: "1"
18+
# chrome_android: "18"
19+
# edge: "12"
20+
# firefox: "1"
21+
# firefox_android: "4"
22+
# safari: "1"
23+
# safari_ios: "1"
24+
- javascript.builtins.Function.arguments
25+
26+
# ⬇️ Same status as overall feature ⬇️
27+
# baseline: false
28+
# support:
29+
# chrome: "1"
30+
# chrome_android: "18"
31+
# edge: "12"
32+
# firefox: "1"
33+
# firefox_android: "4"
34+
# safari: "3"
35+
# safari_ios: "1"
36+
- javascript.builtins.Function.caller

0 commit comments

Comments
 (0)