Skip to content

Commit

Permalink
Good errors for size-changing ops.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 13, 2015
1 parent 11dd464 commit 0da71d8
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,32 @@ protected int indicesToFlatIndex(ThreadContext tc, long[] indices) {
dimensions.length, indices.length));
}
}

public void push_boxed(ThreadContext tc, SixModelObject value) {
throw ExceptionHandling.dieInternal(tc, "Cannot push onto a fixed dimension array");
}
public void push_native(ThreadContext tc) {
throw ExceptionHandling.dieInternal(tc, "Cannot push onto a fixed dimension array");
}
public SixModelObject pop_boxed(ThreadContext tc) {
throw ExceptionHandling.dieInternal(tc, "Cannot pop a fixed dimension array");
}
public void pop_native(ThreadContext tc) {
throw ExceptionHandling.dieInternal(tc, "Cannot pop a fixed dimension array");
}
public void unshift_boxed(ThreadContext tc, SixModelObject value) {
throw ExceptionHandling.dieInternal(tc, "Cannot unshift onto a fixed dimension array");
}
public void unshift_native(ThreadContext tc) {
throw ExceptionHandling.dieInternal(tc, "Cannot unshift onto a fixed dimension array");
}
public SixModelObject shift_boxed(ThreadContext tc) {
throw ExceptionHandling.dieInternal(tc, "Cannot shift a fixed dimension array");
}
public void shift_native(ThreadContext tc) {
throw ExceptionHandling.dieInternal(tc, "Cannot shift a fixed dimension array");
}
public void splice(ThreadContext tc, SixModelObject from, long offset, long count) {
throw ExceptionHandling.dieInternal(tc, "Cannot splice a fixed dimension array");
}
}

0 comments on commit 0da71d8

Please sign in to comment.