Skip to content

Commit

Permalink
backout 1245024 and 1279303 for breaking https://forum.manjaro.org/
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Aug 15, 2019
1 parent f6c3fe7 commit 1cc8627
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 407 deletions.
1 change: 0 additions & 1 deletion js/src/builtin/Object.cpp
Expand Up @@ -1061,7 +1061,6 @@ static const JSFunctionSpec object_static_methods[] = {
JS_FN("getPrototypeOf", obj_getPrototypeOf, 1,0),
JS_FN("setPrototypeOf", obj_setPrototypeOf, 2,0),
JS_FN("getOwnPropertyDescriptor", obj_getOwnPropertyDescriptor,2,0),
JS_SELF_HOSTED_FN("getOwnPropertyDescriptors", "ObjectGetOwnPropertyDescriptors", 1,JSPROP_DEFINE_LATE),
JS_FN("keys", obj_keys, 1,0),
JS_SELF_HOSTED_FN("values", "ObjectValues", 1,JSPROP_DEFINE_LATE),
JS_SELF_HOSTED_FN("entries", "ObjectEntries", 1,JSPROP_DEFINE_LATE),
Expand Down
27 changes: 0 additions & 27 deletions js/src/builtin/Object.js
Expand Up @@ -41,33 +41,6 @@ function ObjectStaticAssign(target, firstSource) {
return to;
}

// ES stage 4 proposal
function ObjectGetOwnPropertyDescriptors(O) {
// Step 1.
var obj = ToObject(O);

// Step 2.
var keys = OwnPropertyKeys(obj, JSITER_OWNONLY | JSITER_HIDDEN | JSITER_SYMBOLS);

// Step 3.
var descriptors = {};

// Step 4.
for (var index = 0, len = keys.length; index < len; index++) {
var key = keys[index];

// Steps 4.a-b.
var desc = std_Object_getOwnPropertyDescriptor(obj, key);

// Step 4.c.
if (typeof desc !== "undefined")
_DefineDataProperty(descriptors, key, desc);
}

// Step 5.
return descriptors;
}

function ObjectDefineSetter(name, setter) {
var object;
if (this === null || this === undefined)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1cc8627

Please sign in to comment.