From kfm-devel Sat Nov 03 02:32:42 2001 From: Michael Bedy Date: Sat, 03 Nov 2001 02:32:42 +0000 To: kfm-devel Subject: regexp error.. X-MARC-Message: https://marc.info/?l=kfm-devel&m=100475489027876 How do I throw an error in Javascript if the regular expression is bad? I'm not sure I quite get that part of the interpreter..... For instance, if the flags are incorrect, I need to throw a syntax error. Does Completion(Throw, throwError(exec, SyntaxError, "Bad regex flags")) produce an object that can be returned from the construct function? Is that all I have to do to throw an exception? Thanks, - Mike