Permalink
Browse files

raiseUnicodeError: One missing error.

  • Loading branch information...
1 parent c30e296 commit 6bdbb6e102fb12cc0c2c8aa123dcf866c035c015 @kennytm committed Jun 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 vm/main/exchelpers.hh
@@ -60,6 +60,9 @@ OpResult raiseUnicodeError(VM vm, UnicodeErrorReason reason, ExtraArgs&&... args
case UnicodeErrorReason::invalidUTF16:
reasonAtom = vm->coreatoms.invalidUTF16;
break;
+ case UnicodeErrorReason::truncated:
+ reasonAtom = vm->coreatoms.truncated;
+ break;
default: // shouldn't reach here.
assert(false);
return OpResult::fail();

0 comments on commit 6bdbb6e

Please sign in to comment.