Skip to content
Commit 03f4e899 authored by Philip Chimento's avatar Philip Chimento 🚮
Browse files

js: Use JS_Enumerate instead of iterator

JS_NewPropertyIterator() and its related functions are gone in mozjs38;
apparently they were broken anyway for indexed properties (i.e. those
with integer IDs rather than string IDs.)

Instead, we use JS_Enumerate() which often makes the code cleaner anyway.
Note that the JS::AutoIdArray does not root the jsids inside it, it just
manages the array wrapper.

https://bugzilla.gnome.org/show_bug.cgi?id=776966
parent 1b0d5b0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment