#
# Fatal error in ../src/api.h, line 402
# CHECK(that == __null || !(*reinterpret_cast<v8::internal::Context**>( const_cast<v8::Context*>(that)))->IsFailure()) failed
#
==== C stack trace ===============================
1: V8_Fatal
2: v8::Utils::OpenHandle(v8::Context const*, bool)
3: v8::Context::Enter()
4: init(int, char**)
5: ??
6: ??
7: ??
JSEngine::Engine(){printf("Script | DEBUG | Constructing engine\n");V8::Initialize();this->isolate = Isolate::GetCurrent();HandleScope scope(this->isolate);this->context = Context::New(this->isolate);Persistent<Context> persistent_context(this->isolate, this->context);printf("Script | DEBUG | Done constructing engine, context: %lu\n", this->context);}
HandleScope handleScope(Server::asEngine->isolate);printf("Set scope to isolate\n");Server::asEngine->context->Enter();printf("Set scope to context\n");Handle<String> source = String::NewFromUtf8(Server::asEngine->isolate, "var test = 5;");Handle<Script> script = Script::Compile(source);Handle<Value> result = script->Run();
ASEngine::Engine::Engine(){printf("eScript | DEBUG | Constructing engine\n");
V8::Initialize();this->isolate = Isolate::GetCurrent();HandleScope scope(this->isolate);this->context = Context::New(this->isolate);Persistent<Context> persistent_context(this->isolate, this->context);
printf("Script | DEBUG | Done constructing engine\n");}v8::Local<v8::Context> ASEngine::Engine::GetContext(){return Local<Context>::New(this->isolate, this->context);}
I still get the exact same error.Server::asEngine = new ASEngine::Engine();HandleScope handleScope(Server::asEngine->isolate);Context::Scope scope(Server::asEngine->GetContext());Handle<String> source2 = String::NewFromUtf8(Server::asEngine->isolate, "test;");Handle<Script> script2 = Script::Compile(source2);Handle<Value> result2 = script2->Run();
--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/vji3EwZZN7k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.