v8.h   v8.h 
skipping to change at line 3466 skipping to change at line 3466
* If code generation from strings is not allowed the * If code generation from strings is not allowed the
* V8::AllowCodeGenerationFromStrings callback will be invoked if * V8::AllowCodeGenerationFromStrings callback will be invoked if
* set before blocking the call to 'eval' or the 'Function' * set before blocking the call to 'eval' or the 'Function'
* constructor. If that callback returns true, the call will be * constructor. If that callback returns true, the call will be
* allowed, otherwise an exception will be thrown. If no callback is * allowed, otherwise an exception will be thrown. If no callback is
* set an exception will be thrown. * set an exception will be thrown.
*/ */
void AllowCodeGenerationFromStrings(bool allow); void AllowCodeGenerationFromStrings(bool allow);
/** /**
* Returns true if code generation from strings is allowed for the contex
t.
* For more details see AllowCodeGenerationFromStrings(bool) documentatio
n.
*/
bool IsCodeGenerationFromStringsAllowed();
/**
* 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:
explicit 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:
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/