bug_279376.js 916 B

1234567891011121314151617181920212223
  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. //OS 279376 : CheckinID:1304100:Exprgen:CAS:ARM::FRE:fatal error
  6. //LowerCallArgs will handle the extraArgs. We only need to specify the position of the first argument
  7. // i.e 1 and not 1 + extraArgs as done in other archs
  8. var obj0 = {};
  9. obj0.method0= function(){ };
  10. protoObj0 = {__proto__ : obj0}
  11. protoObj0.method1 = function() {
  12. this.method0.apply(this, arguments);
  13. }
  14. protoObj0.method1.prototype = {
  15. method0 : function(){
  16. },
  17. }
  18. protoObj0.method0.apply(new protoObj0.method1(...[1]));
  19. WScript.Echo("pass");