public StringIsCompilableUnit ( string source ) : bool | ||
source | string | the source buffer to check |
return | bool |
stringIsCompilableUnit is intended to support interactive compilation of JavaScript. If compiling the string would result in an error that might be fixed by appending more source, this method returns false. In every other case, it returns true.
Interactive shells may accumulate source lines, using this method after each new line is appended to check whether the statement being entered is complete.
public StringIsCompilableUnit ( string source ) : bool | ||
source | string | the source buffer to check |
return | bool |