~marcustomlinson/v8-cpp/add_tests

« back to all changes in this revision

Viewing changes to src/internal/convert.h

  • Committer: Marcus Tomlinson
  • Date: 2015-06-22 16:45:48 UTC
  • mfrom: (3.1.16 v8runner)
  • Revision ID: marcus.tomlinson@canonical.com-20150622164548-zqix7e1effj2078u
Merged v8runner

Show diffs side-by-side

added added

removed removed

Lines of Context:
489
489
 
490
490
    static ToType to_v8(v8::Isolate* isolate, T const* value)
491
491
    {
492
 
        return Class<ClassType>::find_object(isolate, value);
 
492
        return Class<ClassType>::instance(isolate).export_object(const_cast<T*>(value));
493
493
    }
494
494
};
495
495