proxybug.js 541 B

123456789101112
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var bug = new Proxy(new Array(1), {has: () => true});
  6. var a = bug.concat();
  7. if (a[0] !== undefined || a.length !== 1) {
  8. print("failed");
  9. } else {
  10. print("passed");
  11. }