2003/07/28 23:17:00
[org.ibex.core.git] / src / org / xwt / js / GlobalScopeImpl.java
index 899b672..5d46c83 100644 (file)
@@ -38,6 +38,12 @@ class GlobalScopeImpl extends JS.Scope {
         } else if(method.equals("encodeURIComponent")) {
             if(checkOnly) return Boolean.TRUE;
             return encodeURIComponent(args);
+        } else if(method.equals("escape")) {
+            if(checkOnly) return Boolean.TRUE;
+            return escape(args);
+        } else if(method.equals("unescape")) {
+            if(checkOnly) return Boolean.TRUE;
+            return unescape(args);
         } else if(method.equals("stringFromCharCode")) {
             if(checkOnly) return Boolean.TRUE;
             return stringFromCharCode(args);
@@ -126,4 +132,10 @@ class GlobalScopeImpl extends JS.Scope {
     private Object encodeURIComponent(JS.Array args) {
         throw new JS.Exn("encodeURIComponent is unimplemented");
     }
+    private Object escape(JS.Array args) {
+        throw new JS.Exn("escape is unimplemented");
+    }
+    private Object unescape(JS.Array args) {
+        throw new JS.Exn("unescape is unimplemented");
+    }
 }