diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-06 10:01:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-06 10:02:00 +0000 |
commit | 1154e48843479efa00d81712cafcd9e520180030 (patch) | |
tree | 7702fbe0d5adc205b30856dae5d5063b3b81d9ba /js/src/builtin/Object.cpp | |
parent | 9440be0ae35650e9ffd9d2ec3692c6fc932c3582 (diff) | |
download | uxp-1154e48843479efa00d81712cafcd9e520180030.tar.gz |
Issue #1639 - Implement object.fromEntries()
Adds a self-hosted implementation of this map->object conversion.
This resolves #1639.
Diffstat (limited to 'js/src/builtin/Object.cpp')
-rw-r--r-- | js/src/builtin/Object.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/builtin/Object.cpp b/js/src/builtin/Object.cpp index bfcc8d20ef..d3001b69e4 100644 --- a/js/src/builtin/Object.cpp +++ b/js/src/builtin/Object.cpp @@ -1239,6 +1239,7 @@ static const JSFunctionSpec object_static_methods[] = { JS_FN("isFrozen", obj_isFrozen, 1, 0), JS_FN("seal", obj_seal, 1, 0), JS_FN("isSealed", obj_isSealed, 1, 0), + JS_SELF_HOSTED_FN("fromEntries", "ObjectFromEntries", 1, 0), JS_FS_END }; |