Commit 4e2027bb authored by yangguo@chromium.org's avatar yangguo@chromium.org

Revert r12379 (Add checks to external string API).

R=ulan@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/10897027

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12406 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3d35ecf3
......@@ -2539,7 +2539,7 @@ class V8EXPORT Extension { // NOLINT
// Note that the strings passed into this constructor must live as long
// as the Extension itself.
Extension(const char* name,
const char* source,
const char* source = 0,
int dep_count = 0,
const char** deps = 0,
int source_length = -1);
......
......@@ -537,13 +537,11 @@ Extension::Extension(const char* name,
: name_(name),
source_length_(source_length >= 0 ?
source_length :
static_cast<int>(strlen(source))),
(source ? static_cast<int>(strlen(source)) : 0)),
source_(source, source_length_),
dep_count_(dep_count),
deps_(deps),
auto_enable_(false) {
CHECK(source);
}
auto_enable_(false) { }
v8::Handle<Primitive> Undefined() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment