Closed j-f1 closed 2 years ago
Time Change: +603.75ms (7%) 🔍
Total Time: 8,585.75ms
Test name | Duration | Change | |
---|---|---|---|
Serialization/Write JavaScript number directly | 203.5ms | +34.25ms (16%) | ⚠️ |
Serialization/Write JavaScript string directly | 197ms | +22.25ms (11%) | ⚠️ |
Serialization/Swift Int to JavaScript | 2,670ms | +250.25ms (9%) | 🔍 |
Serialization/Swift String to JavaScript | 2,666.25ms | +207.25ms (7%) | 🔍 |
For the record: https://tc39.es/ecma262/#sec-reflect.get
28.1.5 Reflect.get ( target, propertyKey [ , receiver ] ) When the get function is called with arguments target, propertyKey, and receiver, the following steps are taken:
- If Type(target) is not Object, throw a TypeError exception.
This re-adds the functionality removed by #180.
(I accidentally pushed this change to
main
first, sorry about that!)The
Reflect
namespace is mainly intended for use withProxy
objects, with each function on that namespace matching the signature of the corresponding proxy trap. For most use cases, normal access is preferable.The test failure was occurring because
Reflect.*
functions check that their parameter is really an object. While this is the case for objects, symbols aren’t objects; the[]
syntax automatically converts to an object where necessary.