src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptObject.java
equal
deleted
inserted
replaced
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()) { |