| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Use v8::Undefined(isolate) instead of empty v8::Local<v8::Value>() - Changed argument order from (key, value) to (value, key, searchParams) - Use get_entries() iterator instead of get_keys() + get() for duplicate keys - Support the optional thisArg second parameter
| Back | FazBrowse Home | New Git URL |
Fixes URLSearchParams.forEach() to match the spec.
Equivalent fix for Android: NativeScript/android#1895
Problem
Calling url.searchParams.forEach() in NativeScript iOS crashed with EXC_BAD_ACCESS (code=1, address=0x0) because an empty v8::Local<v8::Value>() was passed as the thisArg to callback->Call().
Fixes
Changes
Known Limitations (pre-existing)
The entries() and values() methods still use get_keys() + get() which doesn't handle duplicate keys correctly.