caller_replaced_proto.js 828 B

1234567891011121314151617181920212223242526272829
  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 test() {
  6. var kcngmm = function () {
  7. };
  8. var u3056 = function () {
  9. };
  10. with (u3056.__proto__ = Object.seal.bind(undefined, /x/g)) {
  11. (function () {
  12. return '';
  13. }());
  14. }
  15. try {
  16. try {
  17. u3056.caller = kcngmm;
  18. } catch (e) {
  19. }
  20. try {
  21. ;
  22. } catch (e) {
  23. }
  24. } catch (e) {
  25. }
  26. }
  27. test();
  28. WScript.Echo("Pass");