diff --git a/v8js_methods.cc b/v8js_methods.cc index 4395559..7757c0e 100644 --- a/v8js_methods.cc +++ b/v8js_methods.cc @@ -305,16 +305,6 @@ V8JS_METHOD(require) convert_to_string(module_code); } - // Check that some code has been returned - if (Z_STRLEN_P(module_code)==0) { - zval_ptr_dtor(&module_code); - efree(normalised_module_id); - efree(normalised_path); - - info.GetReturnValue().Set(isolate->ThrowException(V8JS_SYM("Module loader callback did not return code"))); - return; - } - // Create a template for the global object and set the built-in global functions v8::Handle global = v8::ObjectTemplate::New(); global->Set(V8JS_SYM("print"), v8::FunctionTemplate::New(isolate, V8JS_MN(print)), v8::ReadOnly);