bug_os3198161.js 598 B

12345678910111213141516
  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. obj = [1,2,3,4,5];
  6. obj.constructor = function() { return {}; }
  7. Object.freeze(obj);
  8. if ('[2,3]' == JSON.stringify(Array.prototype.slice.call(obj,1,3)))
  9. {
  10. WScript.Echo('Pass');
  11. }
  12. else
  13. {
  14. WScript.Echo('Fail');
  15. }