src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptObject.java
changeset 47437 54a2f246edd8
parent 47216 71c04702a3d5
child 47713 530f16bacbfd
equal deleted inserted replaced
47436:389695e5e8db 47437:54a2f246edd8
  2134         return switchPoints.toArray(new SwitchPoint[0]);
  2134         return switchPoints.toArray(new SwitchPoint[0]);
  2135     }
  2135     }
  2136 
  2136 
  2137     // Similar to getProtoSwitchPoints method above, but used for additional prototype switchpoints of
  2137     // Similar to getProtoSwitchPoints method above, but used for additional prototype switchpoints of
  2138     // properties that are known not to exist, e.g. the original property name in a __noSuchProperty__ invocation.
  2138     // properties that are known not to exist, e.g. the original property name in a __noSuchProperty__ invocation.
  2139     private SwitchPoint getProtoSwitchPoint(final String name) {
  2139     final SwitchPoint getProtoSwitchPoint(final String name) {
  2140         if (getProto() == null) {
  2140         if (getProto() == null) {
  2141             return null;
  2141             return null;
  2142         }
  2142         }
  2143 
  2143 
  2144         for (ScriptObject obj = this; obj.getProto() != null; obj = obj.getProto()) {
  2144         for (ScriptObject obj = this; obj.getProto() != null; obj = obj.getProto()) {