1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 16:04:12 +01:00

Fix iter() on FF36. Closes issue #63.

This commit is contained in:
Kris Maglione
2010-10-09 01:11:08 -04:00
parent f40ed2e734
commit d64eab8f2a

View File

@@ -373,7 +373,7 @@ set.remove = function (set, key) {
* @returns {Generator}
*/
function iter(obj) {
if (ctypes && obj instanceof ctypes.CData) {
if (ctypes && ctypes.CData && obj instanceof ctypes.CData) {
while (obj.constructor instanceof ctypes.PointerType)
obj = obj.contents;
if (obj.constructor instanceof ctypes.ArrayType)