apply3.baseline 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --- f is not callable ---
  2. Exception: TypeError : Function.prototype.apply: 'this' is not a Function object
  3. Exception: TypeError : Function.prototype.apply: 'this' is not a Function object
  4. --- f.apply(x) ---
  5. Called with this: object[[object Object]], args: []
  6. --- f.apply(x, null), f.apply(x, undefined) ---
  7. Called with this: object[[object Object]], args: []
  8. Called with this: object[[object Object]], args: []
  9. --- f.apply(x, 123), f.apply(x, 'string'), f.apply(x, true) ---
  10. Exception: TypeError : Function.prototype.apply: argument is not an Object
  11. Exception: TypeError : Function.prototype.apply: argument is not an Object
  12. Exception: TypeError : Function.prototype.apply: argument is not an Object
  13. --- f.apply(x, obj), obj.length is null/undefined/NaN/string/OutOfRange ---
  14. Called with this: object[[object Object]], args: []
  15. Called with this: object[[object Object]], args: []
  16. Called with this: object[[object Object]], args: []
  17. Called with this: object[[object Object]], args: []
  18. Exception: RangeError : Argument list too large to apply
  19. Called with this: object[[object Object]], args: []
  20. --- f.apply(x, arr), arr.length is huge ---
  21. Exception: RangeError : Argument list too large to apply
  22. --- f.apply(x, obj), obj.length is huge ---
  23. Exception: RangeError : Argument list too large to apply
  24. --- f.apply(x, arr) ---
  25. Called with this: object[[object Object]], args: []
  26. Called with this: object[[object Object]], args: [1]
  27. Called with this: object[[object Object]], args: [2, 3, NaN, null, undefined, false, hello, [object Object]]
  28. --- f.apply(x, arr) arr.length increased ---
  29. Called with this: object[[object Object]], args: [1, 2, undefined, undefined, undefined]
  30. --- f.apply(x, arguments) ---
  31. Called with this: object[[object Object]], args: []
  32. Called with this: object[[object Object]], args: [1]
  33. Called with this: object[[object Object]], args: [2, 3, NaN, null, undefined, false, hello, [object Object]]
  34. --- f.apply(x, obj) ---
  35. Called with this: object[[object Object]], args: []
  36. Called with this: object[[object Object]], args: [1]
  37. Called with this: object[[object Object]], args: [2, 3, NaN, null, undefined, false, hello, [object Object]]
  38. --- f.apply(), f.apply(null), f.apply(undefined), global x1 should be changed ---
  39. global x1 : hello
  40. global x1 : hello
  41. global x1 : hello
  42. --- f.apply(x), global x1 should NOT be changed ---
  43. global x1 : 0
  44. o.x1 : hello
  45. --- f.apply(v), v is missing/null/undefined/123/true/'string' ---
  46. Called with this: object[[object global]], args: []
  47. Called with this: object[[object global]], args: []
  48. Called with this: object[[object global]], args: []
  49. Called with this: object[123], args: []
  50. Called with this: object[true], args: []
  51. Called with this: object[string], args: []
  52. --- f.apply(v), v is missing/null/undefined/123/true/'string', f: string.charCodeAt ---
  53. Exception: TypeError : String.prototype.charCodeAt: 'this' is null or undefined
  54. Exception: TypeError : String.prototype.charCodeAt: 'this' is null or undefined
  55. Exception: TypeError : String.prototype.charCodeAt: 'this' is null or undefined
  56. 49
  57. 116
  58. 115
  59. --- f.apply(v), v is missing/null/undefined/123/true/'string', f: string.charAt ---
  60. Exception: TypeError : String.prototype.charAt: 'this' is null or undefined
  61. Exception: TypeError : String.prototype.charAt: 'this' is null or undefined
  62. Exception: TypeError : String.prototype.charAt: 'this' is null or undefined
  63. 1
  64. t
  65. s
  66. --- f.call(v), v is missing/null/undefined/123/true/'string' ---
  67. Called with this: object[[object global]], args: []
  68. Called with this: object[[object global]], args: []
  69. Called with this: object[[object global]], args: []
  70. Called with this: object[123], args: []
  71. Called with this: object[true], args: []
  72. Called with this: object[string], args: []
  73. --- f.call(v), v is missing/null/undefined/123/true/'string', f: string.charCodeAt ---
  74. Exception: TypeError : String.prototype.charCodeAt: 'this' is null or undefined
  75. Exception: TypeError : String.prototype.charCodeAt: 'this' is null or undefined
  76. Exception: TypeError : String.prototype.charCodeAt: 'this' is null or undefined
  77. 49
  78. 116
  79. 115
  80. --- f.call(v), v is missing/null/undefined/123/true/'string', f: string.charAt ---
  81. Exception: TypeError : String.prototype.charAt: 'this' is null or undefined
  82. Exception: TypeError : String.prototype.charAt: 'this' is null or undefined
  83. Exception: TypeError : String.prototype.charAt: 'this' is null or undefined
  84. 1
  85. t
  86. s