Skip to content

Commit bb90b33

Browse files
Tzvetan Mikovfacebook-github-bot
authored andcommitted
EASY: make Function.prototype.caller/arguments configurable
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
1 parent 7a25608 commit bb90b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/VM/JSLib/Function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Handle<NativeConstructor> createFunctionConstructor(Runtime &runtime) {
9393
PropertyFlags pf;
9494
pf.clear();
9595
pf.enumerable = 0;
96-
pf.configurable = 0;
96+
pf.configurable = 1;
9797
pf.accessor = 1;
9898
auto res = JSObject::defineNewOwnProperty(
9999
functionPrototype,

0 commit comments

Comments
 (0)