proxytest9.baseline 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. test0 : Object.keys with symbols
  2. 0
  3. test1: Object.prototype.propertyIsEnumerable
  4. true
  5. test2: Object.getOwnPropertyDescriptor
  6. getown
  7. [object Object]
  8. proxy getown
  9. getOwnPropertyDescriptor trap for prop: a
  10. has trap for prop :enumerable
  11. has trap for prop :configurable
  12. has trap for prop :value
  13. has trap for prop :writable
  14. has trap for prop :get
  15. has trap for prop :set
  16. plain key trap!
  17. getOwn
  18. 1
  19. proxy key trap!
  20. getOwn
  21. 1
  22. proxy key trap!
  23. getOwn :a
  24. 1
  25. get trap : length
  26. get trap : 0
  27. get trap : 1
  28. get trap : 2
  29. ownKeys trap :
  30. getOwnPropertyDescriptor trap : a
  31. getOwnPropertyDescriptor trap : b
  32. getOwnPropertyDescriptor trap : Symbol()
  33. ownKeys trap :
  34. getOwnPropertyDescriptor trap : a
  35. getOwnPropertyDescriptor trap : b
  36. getOwnPropertyDescriptor trap : Symbol()
  37. get : bind
  38. get : length
  39. get : name
  40. apply
  41. bound test
  42. bound test
  43. test
  44. test called
  45. test called
  46. test called
  47. get trap: bind
  48. getPrototypeOf trap
  49. getOwnPropertyDescriptor trap: length
  50. get trap: length
  51. get trap: name
  52. true
  53. true
  54. get trap :__lookupGetter__
  55. getOwnPropertyDescriptor trap :A
  56. get trap :__lookupSetter__
  57. getOwnPropertyDescriptor trap :A
  58. 123
  59. my proxy ownKeys
  60. length
  61. construct x1
  62. construct x
  63. f1:f2
  64. get trap of
  65. constructor trap
  66. 1,2
  67. get trap from
  68. constructor trap
  69. 1,2
  70. get trap bind
  71. get trap bind
  72. get trap length
  73. get trap length
  74. get trap name
  75. get trap name
  76. constructor trap
  77. constructor trap
  78. get trap prototype
  79. constructor trap
  80. constructor trap
  81. get trap prototype
  82. constructor trap
  83. true
  84. get trap m
  85. def
  86. ade
  87. b
  88. value : 2
  89. configurable : true
  90. writable : false
  91. enumerable : false
  92. false
  93. false
  94. expected :Proxy argument handler is not a valid object
  95. expected :Proxy argument target is not a valid object
  96. Proxy.prototype = false
  97. done test22
  98. test23 done.
  99. *** ownPropertyNames
  100. a
  101. *** ownPropertySymbols
  102. Symbol(b)
  103. Symbol(c)
  104. *** ownKeys
  105. a
  106. Symbol(b)
  107. Symbol(c)
  108. prototype
  109. 1
  110. prototype
  111. 2
  112. true
  113. hasTrap, property : p1
  114. hasTrap, property : p2
  115. deleteTrap, property : p3
  116. getTrap, property : bar123
  117. getTrap, property : foo123
  118. foo called
  119. 43
  120. 42
  121. expected :method is called on a revoked Proxy object
  122. expected :method get is called on a revoked Proxy object
  123. expected :method toObject is called on a revoked Proxy object
  124. expected :method construct is called on a revoked Proxy object