src/jdk/nashorn/internal/runtime/ScriptObject.java

changeset 247
5a3f7867e19c
parent 243
80cb02dedc83
child 252
544e17632e96
equal deleted inserted replaced
246:c8023561505b 247:5a3f7867e19c
660 if (property != null) { 660 if (property != null) {
661 return new FindProperty(start, this, property); 661 return new FindProperty(start, this, property);
662 } 662 }
663 663
664 if (deep) { 664 if (deep) {
665 final ScriptObject proto = getProto(); 665 final ScriptObject myProto = getProto();
666 if(proto != null) { 666 if (myProto != null) {
667 return proto.findProperty(key, deep, stopOnNonScope, start); 667 return myProto.findProperty(key, deep, stopOnNonScope, start);
668 } 668 }
669 } 669 }
670 670
671 return null; 671 return null;
672 } 672 }

mercurial