Skip to content

Commit

Permalink
build(android): use rest args in place of arguments for global methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed May 19, 2020
1 parent 7c24d24 commit 6f3f434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/runtime/v8/tools/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
"""

JS_DEFINE_TOP_LEVEL = \
""" global.%(name)s = function() {
return %(namespace)s.%(mapping)s.apply(%(namespace)s, arguments);
""" global.%(name)s = function(...args) {
return %(namespace)s.%(mapping)s.apply(%(namespace)s, args);
}
"""

Expand Down

0 comments on commit 6f3f434

Please sign in to comment.