| Index: chrome/test/data/extensions/api_test/stubs_app/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/stubs_app/background.js b/chrome/test/data/extensions/api_test/stubs_app/background.js
|
| index 32ae43446fabc2dbd2d8d010b97fbd03bb6c46b7..50b729c3e8fe3edb72fced88ef2730994ce66c43 100644
|
| --- a/chrome/test/data/extensions/api_test/stubs_app/background.js
|
| +++ b/chrome/test/data/extensions/api_test/stubs_app/background.js
|
| @@ -22,7 +22,8 @@ function getApiPaths() {
|
| [module.functions, module.events].forEach(function(section) {
|
| if (typeof(section) == "undefined")
|
| return;
|
| - section.forEach(function(entry) {
|
| + // Pieces of the module don't inherit from Array/Object.
|
| + Array.prototype.forEach.call(section, function(entry) {
|
| apiPaths.push(namespace + "." + entry.name);
|
| });
|
| });
|
|
|