502 | | == `[ReturnNewObject]`(m,a) == #ReturnNewObject |
503 | | |
504 | | Summary: `[ReturnNewObject]` controls whether WebCore can return a cached wrapped object or WebCore needs to return a newly created wrapped object every time. |
505 | | |
506 | | Usage: `[ReturnNewObject]` can be specified on methods or attributes: |
507 | | {{{ |
508 | | [ReturnNewObject] attribute Node node; |
509 | | [ReturnNewObject] Node createTextNode(); |
510 | | }}} |
511 | | |
512 | | Without `[ReturnNewObject]`, JavaScriptCore cache a wrapped object for performance. |
| 502 | == `[NewObject]`(m,a) == #NewObject |
| 503 | |
| 504 | * [https://heycam.github.io/webidl/#NewObject The spec of NewObject] |
| 505 | |
| 506 | Summary: `[NewObject]` controls whether WebCore can return a cached wrapped object or WebCore needs to return a newly created wrapped object every time. |
| 507 | |
| 508 | Usage: `[NewObject]` can be specified on methods or attributes: |
| 509 | {{{ |
| 510 | [NewObject] attribute Node node; |
| 511 | [NewObject] Node createTextNode(); |
| 512 | }}} |
| 513 | |
| 514 | Without `[NewObject]`, JavaScriptCore cache a wrapped object for performance. |