generator-strict-error.js 513 B

123456789101112131415
  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. try
  6. {
  7. eval("function test() { function * arguments() { \"use strict\"; } }; test();");
  8. }
  9. catch (e)
  10. {
  11. WScript.Echo(e);
  12. }