| 111 | Value(makeShared<ValueFunctionWithCallable>(postMessageFunc))); |
| 112 | auto closeFunc = [weakSelf](const ValueFunctionCallContext& callContext) -> Value { |
| 113 | auto self = weakSelf.lock(); |
| 114 | if (self) { |
| 115 | self->close(); |
| 116 | } |
| 117 | return Value::undefined(); |
| 118 | }; |