promiseToFutureAsMap#
Convert a JS Promise to a Future<Map<String, dynamic>>.
On a successful result the native JS result will be converted to a Dart Map.
See convertNativeToDart_Dictionary. On a rejected promise the error is
forwarded without change.