mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-29 00:05:45 +01:00
Fix iter() on FF36. Closes issue #63.
This commit is contained in:
@@ -373,7 +373,7 @@ set.remove = function (set, key) {
|
|||||||
* @returns {Generator}
|
* @returns {Generator}
|
||||||
*/
|
*/
|
||||||
function iter(obj) {
|
function iter(obj) {
|
||||||
if (ctypes && obj instanceof ctypes.CData) {
|
if (ctypes && ctypes.CData && obj instanceof ctypes.CData) {
|
||||||
while (obj.constructor instanceof ctypes.PointerType)
|
while (obj.constructor instanceof ctypes.PointerType)
|
||||||
obj = obj.contents;
|
obj = obj.contents;
|
||||||
if (obj.constructor instanceof ctypes.ArrayType)
|
if (obj.constructor instanceof ctypes.ArrayType)
|
||||||
|
|||||||
Reference in New Issue
Block a user