v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 3228 | skipping to change at line 3228 | |||
*/ | */ | |||
void SetData(Handle<String> data); | void SetData(Handle<String> data); | |||
Local<Value> GetData(); | Local<Value> GetData(); | |||
/** | /** | |||
* Stack-allocated class which sets the execution context for all | * Stack-allocated class which sets the execution context for all | |||
* operations executed within a local scope. | * operations executed within a local scope. | |||
*/ | */ | |||
class Scope { | class Scope { | |||
public: | public: | |||
inline Scope(Handle<Context> context) : context_(context) { | explicit inline Scope(Handle<Context> context) : context_(context) { | |||
context_->Enter(); | context_->Enter(); | |||
} | } | |||
inline ~Scope() { context_->Exit(); } | inline ~Scope() { context_->Exit(); } | |||
private: | private: | |||
Handle<Context> context_; | Handle<Context> context_; | |||
}; | }; | |||
private: | private: | |||
friend class Value; | friend class Value; | |||
friend class Script; | friend class Script; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||