Backed out changeset 258cff340229 (bug 1200798) for new intermittent test failures in browser_dbg_breakpoints-button-02.js

This commit is contained in:
Carsten "Tomcat" Book
2015-11-30 12:45:12 +01:00
parent bee3c47f76
commit f3d45a4d77
132 changed files with 6773 additions and 6479 deletions

View File

@@ -124,7 +124,7 @@ exports.zip = function zip(a, b) {
/**
* Converts an object into an array with 2-element arrays as key/value
* pairs of the object. `{ foo: 1, bar: 2}` would become
* `[[foo, 1], [bar 2]]` (order not guaranteed).
* `[[foo, 1], [bar 2]]` (order not guaranteed);
*
* @param object obj
* @returns array
@@ -133,18 +133,6 @@ exports.entries = function entries(obj) {
return Object.keys(obj).map(k => [k, obj[k]]);
}
/*
* Takes an array of 2-element arrays as key/values pairs and
* constructs an object using them.
*/
exports.toObject = function(arr) {
const obj = {};
for(let pair of arr) {
obj[pair[0]] = pair[1];
}
return obj;
}
/**
* Takes an array of 2-element arrays as key/values pairs and
* constructs an object using them.