| function shouldBe(actual, expected) { |
| throw new Error('bad value: ' + actual); |
| var AsyncFunctionPrototype = async function() {}.__proto__; |
| function testAsyncFunctionExpression() |
| noInline(testAsyncFunctionExpression); |
| function testAsyncFunctionDeclaration() |
| noInline(testAsyncFunctionDeclaration); |
| function testAsyncArrowFunction() |
| noInline(testAsyncArrowFunction); |
| for (var i = 0; i < 1e4; ++i) { |
| shouldBe(testAsyncFunctionExpression().__proto__, AsyncFunctionPrototype); |
| shouldBe(testAsyncFunctionDeclaration().__proto__, AsyncFunctionPrototype); |
| shouldBe(testAsyncArrowFunction().__proto__, AsyncFunctionPrototype); |