[banshee] [JavaScriptCore] Fix compiler warning
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [JavaScriptCore] Fix compiler warning
- Date: Wed, 24 Nov 2010 16:06:03 +0000 (UTC)
commit 199664b50d232dc18cc8f5db8a3b9a8d682dbbe5
Author: Aaron Bockover <abockover novell com>
Date: Wed Nov 24 11:03:27 2010 -0500
[JavaScriptCore] Fix compiler warning
.../JavaScriptCore.Bridge/Runtime.cs | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/Core/Banshee.WebBrowser/JavaScriptCore.Bridge/Runtime.cs b/src/Core/Banshee.WebBrowser/JavaScriptCore.Bridge/Runtime.cs
index e5fd004..5aebef1 100644
--- a/src/Core/Banshee.WebBrowser/JavaScriptCore.Bridge/Runtime.cs
+++ b/src/Core/Banshee.WebBrowser/JavaScriptCore.Bridge/Runtime.cs
@@ -33,10 +33,8 @@ namespace JavaScriptCore.Bridge
{
public static class Runtime
{
- private class RuntimeClassDefinition : JSClassDefinition
+ public class RuntimeClassDefinition : JSClassDefinition
{
- private Dictionary<JSObject, JSValue> import_objects = new Dictionary<JSObject, JSValue> ();
-
public override string ClassName {
get { return "ManagedJavaScriptCore"; }
}
@@ -52,6 +50,12 @@ namespace JavaScriptCore.Bridge
throw new JSErrorException (obj.Context, "IllegalOperationError",
"Setting properties on this object is not allowed");
}
+
+ [JSStaticFunction ("import")]
+ public static JSValue Import (JSObject function, JSObject thisObject, JSValue [] args)
+ {
+ return null;
+ }
}
private static RuntimeClassDefinition js_class_definition;
@@ -65,12 +69,12 @@ namespace JavaScriptCore.Bridge
public static void BindManagedRuntime (this JSContext context)
{
- if (context.GlobalObject.HasProperty ("mjsc")) {
+ if (context.GlobalObject.HasProperty ("mjs")) {
throw new ApplicationException ("Cannot bind runtime to JSContext: " +
"mjsc property already exists on context's global object.");
}
- context.GlobalObject.SetProperty ("mjsc", new JSObject (context, js_class),
+ context.GlobalObject.SetProperty ("mjs", new JSObject (context, js_class),
JSPropertyAttribute.DontDelete);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]