Skip to content

Commit

Permalink
Merge pull request #6464 from vishalduggal/timob-18152
Browse files Browse the repository at this point in the history
[TIMOB-18152] Remove call to TiCheckScriptSyntax
  • Loading branch information
jonalter committed Dec 10, 2014
2 parents cc260e1 + 88cba78 commit 396d652
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions iphone/Classes/KrollBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,11 @@ - (void)evalFileOnThread:(NSString*)path context:(KrollContext*)context_
TiStringRef jsCode = TiStringCreateWithCFString((CFStringRef) jcode);
TiStringRef jsURL = TiStringCreateWithUTF8CString(urlCString);

// validate script
if (![TI_APPLICATION_DEPLOYTYPE isEqualToString:@"production"]) {
TiCheckScriptSyntax(jsContext,jsCode,jsURL,1,&exception);
}
// TIMOB-18152. There is no need to check syntax since TiEvalScript
// will check syntax before evaluation of the script.
// if (![TI_APPLICATION_DEPLOYTYPE isEqualToString:@"production"]) {
// TiCheckScriptSyntax(jsContext,jsCode,jsURL,1,&exception);
// }

// only continue if we don't have any exceptions from above
if (exception == NULL) {
Expand Down

0 comments on commit 396d652

Please sign in to comment.