Index: Microsoft.JScript/ChangeLog
===================================================================
--- Microsoft.JScript/ChangeLog	(revision 47996)
+++ Microsoft.JScript/ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2005-08-04  Jb Evain  <jbevain@gmail.com>
+
+	* CodeGenerator.cs: write a valid RequestAttribute on the assembly
+
 2005-08-03  Florian Gross  <flgr@ccan.de>
 
 	* ScriptObject.cs: Renamed __proto__ to proto for 1.1 compatibility
Index: Microsoft.JScript/CodeGenerator.cs
===================================================================
--- Microsoft.JScript/CodeGenerator.cs	(revision 47996)
+++ Microsoft.JScript/CodeGenerator.cs	(working copy)
@@ -73,6 +73,8 @@
 	internal class CodeGenerator {
 
 		private static string MODULE = "JScript Module";
+		private static string CORLIB = "mscorlib, Version=1.0.5000.0, Culture=neutral, Pub" + 
+			"licKeyToken=b77a5c561934e089";
 
 		internal static string mod_name;
 		internal static AppDomain app_domain;
@@ -122,9 +124,7 @@
 					     Dirname (file_name));
 
 			ConstructorInfo ctr_info = typeof (Microsoft.JScript.ReferenceAttribute).GetConstructor (new Type [] { typeof (string) });
-			// FIXME: find out which is the blob.
-			byte [] blob  = new byte [] {};
-			assembly_builder.SetCustomAttribute (ctr_info, blob); 
+			assembly_builder.SetCustomAttribute (new CustomAttributeBuilder (ctr_info, new object [] {CORLIB}));
 
 			module_builder = assembly_builder.DefineDynamicModule (
 					       mod_name,
@@ -257,9 +257,7 @@
 			ig.Emit (OpCodes.Dup);
 			ig.Emit (OpCodes.Ldc_I4_0);
 
-			ig.Emit (OpCodes.Ldstr,
-				 "mscorlib, Version=1.0.3300.0, Culture=neutral, Pub" + 
-				 "licKeyToken=b77a5c561934e089");
+			ig.Emit (OpCodes.Ldstr, CORLIB);
 
 			ig.Emit (OpCodes.Stelem_Ref);
 
