Title: Uncaught SyntaxError: missing ) after argument list
Last modified: January 4, 2020

---

# Uncaught SyntaxError: missing ) after argument list

 *  Resolved [DickRaney](https://wordpress.org/support/users/dickraney/)
 * (@dickraney)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/)
 * I’m seeing this error in the console when Async is enabled.
 * This is the source code it points to.
 *     ```
       <script type='text/javascript'>
       ( 'fetch' in window ) || document.write( '<script defer='defer' src="https://rhondalevan.com/wp-includes/js/dist/vendor/wp-polyfill-fetch.min.js?ver=3.0.0"></scr' + 'ipt>' );( document.contains ) || document.write( '<script defer='defer' src="https://rhondalevan.com/wp-includes/js/dist/vendor/wp-polyfill-node-contains.min.js?ver=3.26.0-0"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script defer='defer' src="https://rhondalevan.com/wp-includes/js/dist/vendor/wp-polyfill-formdata.min.js?ver=3.0.12"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script defer='defer' src="https://rhondalevan.com/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js?ver=2.0.2"></scr' + 'ipt>' );
       </script>
       ```
   
 * Is that being generated by Async?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-syntaxerror-missing-after-argument-list-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/#post-12293509)
 * The source code is not generated by AsyncJS, but you’ll have to add `wp-polyfill-`
   to the AsyncJS exclusion field to ensure it does not act on those.
 *  Thread Starter [DickRaney](https://wordpress.org/support/users/dickraney/)
 * (@dickraney)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/#post-12294249)
 * Awesome. Thanks!!!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/#post-12294319)
 * you’re welcome, feel free to [leave a review of autoptimize](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)
   or [async js and support](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)
   here! 🙂
 *  [debra15](https://wordpress.org/support/users/debra15/)
 * (@debra15)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/#post-12801387)
 * Hi
 * I got the error message (Uncaught SyntaxError: missing ) after argument list)
   and set all wp-polyfill- js to the AsyncJS exclusion field：
    wp-polyfill-fetch.
   min.js, wp-polyfill-node-contains.min.js, wp-polyfill-dom-rect.min.js, wp-polyfill-
   url.min.js, wp-polyfill-formdata.min.js, wp-polyfill-element-closest.min.js
 * But it does not work.
    Please help, thanks!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/#post-12801427)
 * can [create your own topic here](https://wordpress.org/support/plugin/async-javascript/#new-topic-0)
   Debra and in it provide the link to your site so I can have a look at what might(
   not) be happening?
 *  [debra15](https://wordpress.org/support/users/debra15/)
 * (@debra15)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/#post-12813796)
 * I found another link about the same topic ([https://wordpress.org/support/topic/wp-polyfill-error/](https://wordpress.org/support/topic/wp-polyfill-error/))
   and added js/dist to the AsyncJS exclusion field. The error has gone!
    -  This reply was modified 6 years, 1 month ago by [debra15](https://wordpress.org/support/users/debra15/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Uncaught SyntaxError: missing ) after argument list’ is closed to new
replies.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 6 replies
 * 3 participants
 * Last reply from: [debra15](https://wordpress.org/support/users/debra15/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/uncaught-syntaxerror-missing-after-argument-list-3/#post-12813796)
 * Status: resolved