d.js 637 B

12345678910111213141516171819202122
  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. function testcase() {
  6. function foo() {
  7. const x = {a: 1, b: 2, c: 3, }; //extra ,
  8. return ( x.a === 1 && x.b === 2 && x.c === 3 );
  9. }
  10. try {
  11. return foo();
  12. }
  13. catch (e) {
  14. return false;
  15. }
  16. }
  17. WScript.Echo(testcase());