Commit 9285e666 authored by haraken's avatar haraken Committed by Commit bot

Add v8::Object::CreationContext that works for a persistent handle

I need this API for https://codereview.chromium.org/1609343002/.

BUG=483722

Review-Url: https://codereview.chromium.org/1627233002
Cr-Commit-Position: refs/heads/master@{#39775}
parent 515994b8
......@@ -3220,6 +3220,12 @@ class V8_EXPORT Object : public Value {
*/
Local<Context> CreationContext();
/** Same as above, but works for Persistents */
V8_INLINE static Local<Context> CreationContext(
const PersistentBase<Object>& object) {
return object.val_->CreationContext();
}
/**
* Checks whether a callback is set by the
* ObjectTemplate::SetCallAsFunctionHandler method.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment