1 parent a16b3c3 commit f6479f2Copy full SHA for f6479f2
1 file changed
src/node.cc
@@ -1318,14 +1318,24 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
1318
}
1319
1320
1321
+// TODO remove me before 0.4
1322
Handle<Value> Compile(const Arguments& args) {
1323
HandleScope scope;
1324
1325
+
1326
if (args.Length() < 2) {
1327
return ThrowException(Exception::TypeError(
1328
String::New("needs two arguments.")));
1329
1330
1331
+ static bool shown_error_message = false;
1332
1333
+ if (!shown_error_message) {
1334
+ shown_error_message = true;
1335
+ fprintf(stderr, "(node) process.compile should not be used. "
1336
+ "Use require('vm').runInThisContext instead.\n");
1337
+ }
1338
1339
Local<String> source = args[0]->ToString();
1340
Local<String> filename = args[1]->ToString();
1341
0 commit comments