equal
deleted
inserted
replaced
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 /** |