Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 8b323b2f1fb7264f3b8da49cf1c491ec33c06742..5c76e32a1b4ec24734b2279c29c1ab8f0f1a428e 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -541,7 +541,9 @@ Extension::Extension(const char* name, |
source_(source, source_length_), |
dep_count_(dep_count), |
deps_(deps), |
- auto_enable_(false) { } |
+ auto_enable_(false) { |
+ CHECK(source != NULL || source_length_ == 0); |
+} |
v8::Handle<Primitive> Undefined() { |