Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[jsfm] Also enable the promise polyfill on Android (#2704)
Browse files Browse the repository at this point in the history
Since the internal Promise API may have unpredictable behavior on some
legacy Android devices, so using the js polyfill instead (as iOS does).

Modify the js framework version in package.json, since it has already
been updated in #2669
  • Loading branch information
Hanks10100 authored and lucky-chen committed Jul 15, 2019
1 parent 05c6758 commit eae533c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "weex",
"version": "0.12.2",
"subversion": {
"framework": "0.29.6",
"framework": "0.29.7",
"transformer": ">=0.1.5 <0.5"
},
"description": "A framework for building Mobile cross-platform UI",
Expand Down
2 changes: 1 addition & 1 deletion runtime/shared/polyfill/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { WXEnvironment } = global

/* istanbul ignore next */
if (typeof WXEnvironment !== 'undefined'
&& WXEnvironment.platform === 'iOS'
&& (WXEnvironment.platform === 'iOS' || WXEnvironment.platform === 'android')
&& !WXEnvironment.__enable_native_promise__) {
global.Promise = undefined
}

0 comments on commit eae533c

Please sign in to comment.