|
@@ -120,6 +120,10 @@ namespace Jint
|
|
|
if (Options.IsClrAllowed())
|
|
|
{
|
|
|
Global.FastAddProperty("System", new NamespaceReference(this, "System"), false, false, false);
|
|
|
+ Global.FastAddProperty("importNamespace", new ClrFunctionInstance(this, (thisObj, arguments) =>
|
|
|
+ {
|
|
|
+ return new NamespaceReference(this, TypeConverter.ToString(arguments.At(0)));
|
|
|
+ }), false, false, false);
|
|
|
}
|
|
|
}
|
|
|
|