GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com

#include "json_parser.h" #include "node_errors.h" #include "node_v8_platform-inl.h" #include "util-inl.h" namespace node { using v8::Array; using v8::Context; using v8::Isolate; using v8::Local; using v8::Object; using v8::String; using v8::Value; JSONParser::JSONParser() {} bool JSONParser::Parse(const std::string& content) { DCHECK(!parsed_); Isolate* isolate = isolate_.get(); v8::Isolate::Scope isolate_scope(isolate); v8::HandleScope handle_scope(isolate); Local context = Context::New(isolate); Context::Scope context_scope(context); // It's not a real script, so don't print the source line. errors::PrinterTryCatch bootstrapCatch( isolate, errors::PrinterTryCatch::kDontPrintSourceLine); Local json_string_value; Local result_value; if (!ToV8Value(context, content).ToLocal(&json_string_value) || !json_string_value->IsString() || !v8::JSON::Parse(context, json_string_value.As()) .ToLocal(&result_value) || !result_value->IsObject()) { return false; } context_.Reset(isolate, context); content_.Reset(isolate, result_value.As
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.