Skip to content

Instantly share code, notes, and snippets.

@Jarvix
Created September 13, 2013 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jarvix/6552404 to your computer and use it in GitHub Desktop.
Save Jarvix/6552404 to your computer and use it in GitHub Desktop.
#0 0x0000000100060ae4 in v8::internal::FixedArray::get(int) [inlined] at v8/tools/gyp/../../src/objects-inl.h:1956
#1 0x0000000100060ae4 in v8::internal::Context::global_object() [inlined] at v8/tools/gyp/../../src/contexts.h:374
#2 0x0000000100060ae4 in v8::internal::Context::native_context() at v8/src/contexts.cc:71
#3 0x000000010008a596 in v8::internal::Isolate::to_string_fun() [inlined] at v8/tools/gyp/../../src/isolate.h:855
#4 0x000000010008a58a in v8::internal::Execution::ToString(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, bool*) at v8/src/execution.cc:618
#5 0x0000000100014b9b in v8::Value::ToString() const at v8/src/api.cc:2799
#6 0x0000000100002c09 in -[L8Value toString] at L8Value.mm:131
Script: "4.3"
(...)
v8::ScriptOrigin scriptOrigin = v8::ScriptOrigin(@"hello.js".V8String);
code = v8::Script::Compile(v8Script, &scriptOrigin);
if(!code.IsEmpty())
result = code->Run();
(...)
if(result.IsEmpty())
return nil;
LINE L8Value:131: return [NSString stringWithV8String:result->ToString()];
Note: IsString() returns false, IsNumber returns true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment