Bug 1386026 - Add parentheses to IIFE when testing async generators. r=tromey
authorAndré Bargull <andre.bargull@gmail.com>
Tue, 01 Aug 2017 03:39:53 -0700
changeset 423348 a559d546208cc78791680c57a86dd7819113da1b
parent 423347 3232054e0a930e0eceaa41155ce534f92d717f11
child 423349 1466ea7d584f9e7f8dd40cb99a6b4cb88d561ea6
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstromey
bugs1386026
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1386026 - Add parentheses to IIFE when testing async generators. r=tromey
js/src/tests/ecma_6/extensions/newer-type-functions-caller-arguments.js
--- a/js/src/tests/ecma_6/extensions/newer-type-functions-caller-arguments.js
+++ b/js/src/tests/ecma_6/extensions/newer-type-functions-caller-arguments.js
@@ -58,17 +58,17 @@ const functions = [
 
 const supportsAsyncGenerator = (function() {
     try {
         eval("async function* f(){}");
         return true;
     } catch (e) {
         return false;
     }
-});
+})();
 
 if (supportsAsyncGenerator) {
 eval(`
     async function* asyncGenDecl(){}
 
     functions.push(asyncGenDecl);
     functions.push(async function*(){});
     functions.push({async* asyncGenerator(){}}.asyncGenerator);