src/jdk/nashorn/internal/ir/Symbol.java

changeset 335
8f890b6bf6de
parent 277
92164a5742db
child 349
3efa56767847
equal deleted inserted replaced
334:918a986b0478 335:8f890b6bf6de
460 /** 460 /**
461 * Flag this symbol as potentially undefined in parts of the program 461 * Flag this symbol as potentially undefined in parts of the program
462 */ 462 */
463 public void setCanBeUndefined() { 463 public void setCanBeUndefined() {
464 assert type.isObject() : type; 464 assert type.isObject() : type;
465 if(!canBeUndefined()) { 465 if (!isParam() && !canBeUndefined()) {//parameters are never undefined
466 assert !isShared(); 466 assert !isShared();
467 flags |= CAN_BE_UNDEFINED; 467 flags |= CAN_BE_UNDEFINED;
468 } 468 }
469 } 469 }
470 470

mercurial