is-not-a-global.js (436B)
1 // Copyright 2016 Microsoft, Inc. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 author: Brian Terlson <brian.terlson@microsoft.com> 6 esid: sec-async-function-constructor-properties 7 description: > 8 %AsyncFunction% is not exposed as a global 9 ---*/ 10 11 assert.throws(ReferenceError, function() { 12 AsyncFunction 13 }, "AsyncFunction should not be present as a global"); 14 15 reportCompare(0, 0);