aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/netscape/javascript/JSObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/icedteanp/java/netscape/javascript/JSObject.java')
-rw-r--r--plugin/icedteanp/java/netscape/javascript/JSObject.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/icedteanp/java/netscape/javascript/JSObject.java b/plugin/icedteanp/java/netscape/javascript/JSObject.java
index 0de500f..489efa6 100644
--- a/plugin/icedteanp/java/netscape/javascript/JSObject.java
+++ b/plugin/icedteanp/java/netscape/javascript/JSObject.java
@@ -100,6 +100,16 @@ public final class JSObject {
}
/**
+ * Package-private method used through JSUtil#getJSObjectInternalReference.
+ * We make this package-private to avoid polluting the public interface.
+ * @return the internal identifier
+ */
+ long getInternalReference() {
+ AccessController.getContext().checkPermission(new JSObjectUnboxPermission());
+ return internal;
+ }
+
+ /**
* it is illegal to construct a JSObject manually
*/
public JSObject(int jsobj_addr) {