| 476 | return stashJSValue(valueRef.unsafeReleaseValue(), !wasRetained); |
| 477 | } |
| 478 | |
| 479 | JSValueID IJavaScriptContext::stashJSValue(const JSValue& value) { |
| 480 | return stashJSValue(value, true); |
| 481 | } |
| 482 | |
| 483 | JSValueID IJavaScriptContext::stashJSValue(const JSValue& value, bool shouldRetain) { |
| 484 | if (VALDI_UNLIKELY(_tearingDown)) { |
| 485 | return JSValueID(); |
| 486 | } |
| 487 | |
| 488 | auto id = _sequenceIdGenerator.newId(); |
no outgoing calls
no test coverage detected