| Index: src/api.cc
|
| ===================================================================
|
| --- src/api.cc (revision 1814)
|
| +++ src/api.cc (working copy)
|
| @@ -37,6 +37,7 @@
|
| #include "serialize.h"
|
| #include "snapshot.h"
|
| #include "v8threads.h"
|
| +#include "version.h"
|
|
|
|
|
| #define LOG_API(expr) LOG(ApiEntryCall(expr))
|
| @@ -2422,7 +2423,9 @@
|
|
|
|
|
| const char* v8::V8::GetVersion() {
|
| - return "1.2.2 (candidate)";
|
| + static v8::internal::EmbeddedVector<char, 128> buffer;
|
| + v8::internal::Version::GetString(buffer);
|
| + return buffer.start();
|
| }
|
|
|
|
|
|
|