Skip to content

Commit

Permalink
EASY: make Function.prototype.caller/arguments configurable
Browse files Browse the repository at this point in the history
Summary:
They were mistakenly left as non-configurable, even though the spec says
that they should be in `AddRestrictedFunctionProperties`.

Reviewed By: avp

Differential Revision: D67366247

fbshipit-source-id: 998456a7fa5bc1bdb686751c4fc24177074eebf6
  • Loading branch information
Tzvetan Mikov authored and facebook-github-bot committed Dec 18, 2024
1 parent 7a25608 commit bb90b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/VM/JSLib/Function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Handle<NativeConstructor> createFunctionConstructor(Runtime &runtime) {
PropertyFlags pf;
pf.clear();
pf.enumerable = 0;
pf.configurable = 0;
pf.configurable = 1;
pf.accessor = 1;
auto res = JSObject::defineNewOwnProperty(
functionPrototype,
Expand Down

0 comments on commit bb90b33

Please sign in to comment.