Projects
openEuler:24.03:SP1:Everything
nodejs-object-keys
_service:tar_scm:nodejs-object-keys-indexof.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:nodejs-object-keys-indexof.patch of Package nodejs-object-keys
commit 0a64fee903a8f598b7d76c6556647b8231e21c82 Author: Tom Hughes <tom@compton.nu> Date: Thu Oct 22 19:51:50 2015 +0100 Patch out indexOf shim which isn't needed by node diff --git a/test/shim.js b/test/shim.js index 3124f49..14459e1 100644 --- a/test/shim.js +++ b/test/shim.js @@ -12,7 +12,6 @@ var reRequire = function reRequireImplementation() { }; reRequire(); -var indexOf = require('indexof'); var has = Object.prototype.hasOwnProperty; var enumerable = Object.prototype.propertyIsEnumerable; @@ -154,7 +153,7 @@ test('returns names which are enumerable', function (t) { } var theKeys = keysShim(obj); for (var i = 0; i < theKeys.length; ++i) { - t.notEqual(indexOf(loopedValues, theKeys[i]), -1, theKeys[i] + ' is not enumerable'); + t.notEqual(loopedValues.indexOf(theKeys[i]), -1, theKeys[i] + ' is not enumerable'); } t.end(); });
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2