ProxyCall.js 549 B

123456789101112
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function f() {
  6. arguments;
  7. WScript.Echo('pass');
  8. }
  9. let call = new Proxy(Function.prototype.call, {}); // proxy calls set the flag
  10. call.call(f);