nashorn/src/jdk/nashorn/internal/runtime/AccessorProperty.java
changeset 17774 0407501fa563
parent 17770 3c8602ec5565
child 18615 3f6e6adcbc1a
equal deleted inserted replaced
17772:9acc52342786 17774:0407501fa563
   304 
   304 
   305     @Override
   305     @Override
   306     protected Object getObjectValue(final ScriptObject self, final ScriptObject owner) {
   306     protected Object getObjectValue(final ScriptObject self, final ScriptObject owner) {
   307         if (isSpill()) {
   307         if (isSpill()) {
   308             return self.spill[getSlot()];
   308             return self.spill[getSlot()];
   309         } else {
   309         }
   310             try {
   310 
   311                 return getGetter(Object.class).invokeExact((Object)self);
   311         try {
   312             } catch (final Error|RuntimeException e) {
   312             return getGetter(Object.class).invokeExact((Object)self);
   313                 throw e;
   313         } catch (final Error|RuntimeException e) {
   314             } catch (final Throwable e) {
   314             throw e;
   315                 throw new RuntimeException(e);
   315         } catch (final Throwable e) {
   316             }
   316             throw new RuntimeException(e);
   317         }
   317         }
   318     }
   318     }
   319 
   319 
   320     @Override
   320     @Override
   321     public MethodHandle getGetter(final Class<?> type) {
   321     public MethodHandle getGetter(final Class<?> type) {