Skip to content

Add restricted properties to function prototype#1117

Closed
fbmal7 wants to merge 2 commits into
facebook:static_hfrom
fbmal7:export-D48205935-to-static_h
Closed

Add restricted properties to function prototype#1117
fbmal7 wants to merge 2 commits into
facebook:static_hfrom
fbmal7:export-D48205935-to-static_h

Conversation

@fbmal7

@fbmal7 fbmal7 commented Sep 7, 2023

Copy link
Copy Markdown

Summary:
Move caller and arguments throwing accessors onto
Function.prototype. Define these unconditionally, not just in strict
mode. This is in accordance with AddRestrictedFunctionProperties.

Reviewed By: avp

Differential Revision: D48205935

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 7, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D48205935

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D48205935

fbmal7 and others added 2 commits September 12, 2023 13:01
Summary: `uint64_t` is not a well supported type for `llvh::cl::opt`. Change it to `unsigned` instead.

Differential Revision: D49202751

fbshipit-source-id: 9ca338520e1627445ba838558a9be742e96759f6
Summary:
Pull Request resolved: #1117

Move `caller` and `arguments` throwing accessors onto
Function.prototype. Define these unconditionally, not just in strict
mode. This is in accordance with [AddRestrictedFunctionProperties](https://tc39.es/ecma262/#sec-addrestrictedfunctionproperties).

Reviewed By: avp

Differential Revision: D48205935

fbshipit-source-id: 7ca3ff4fe8795d926ba08530b9d3b96ebdec856b
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D48205935

facebook-github-bot pushed a commit that referenced this pull request Sep 12, 2023
Summary:
Pull Request resolved: #1117

Move `caller` and `arguments` throwing accessors onto
Function.prototype. Define these unconditionally, not just in strict
mode. This is in accordance with [AddRestrictedFunctionProperties](https://tc39.es/ecma262/#sec-addrestrictedfunctionproperties).

Reviewed By: avp

Differential Revision: D48205935

fbshipit-source-id: 25585ce4117ec320a2c1032208c55b8b8e860795
@fbmal7 fbmal7 closed this Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants