nashorn/src/jdk/nashorn/internal/objects/NativeDebug.java
changeset 16522 d643e3ee819c
parent 16226 0e4f37e6cc40
child 16523 af8b30edebce
equal deleted inserted replaced
16346:5e8c55025644 16522:d643e3ee819c
    64      */
    64      */
    65     @Function(attributes = Attribute.NOT_ENUMERABLE, where = Where.CONSTRUCTOR)
    65     @Function(attributes = Attribute.NOT_ENUMERABLE, where = Where.CONSTRUCTOR)
    66     public static Object getContext(final Object self) {
    66     public static Object getContext(final Object self) {
    67         final SecurityManager sm = System.getSecurityManager();
    67         final SecurityManager sm = System.getSecurityManager();
    68         if (sm != null) {
    68         if (sm != null) {
    69             sm.checkPermission(new RuntimePermission("getNashornContext"));
    69             sm.checkPermission(new RuntimePermission("nashorn.getContext"));
    70         }
    70         }
    71         return Global.getThisContext();
    71         return Global.getThisContext();
    72     }
    72     }
    73 
    73 
    74     /**
    74     /**