bmalloc, WTF and JavaScriptCore parts of [Xcode] Update some build settings as recomm...
[WebKit-https.git] / Source / JavaScriptCore / API / tests / Regress141275.mm
index 18e186a650b6f433debb20d1fe18a8481a809905..ee9af88296b8d5a209eef374ccdde4bef9e48bb5 100644 (file)
@@ -306,12 +306,12 @@ static void __JSTRunLoopSourceCancelCallBack(void* info, CFRunLoopRef rl, CFStri
                 NSError* error = nil;
                 if (task.evaluateBlock) {
                     [self _setupEvaluatorThreadContextIfNeeded];
-                    task.evaluateBlock(_jsContext);
-                    if (_jsContext.exception) {
-                        NSLog(@"Did fail on JSContext: %@", _jsContext.name);
-                        NSDictionary* userInfo = @{ NSLocalizedDescriptionKey : [_jsContext.exception[@"message"] toString] };
+                    task.evaluateBlock(self->_jsContext);
+                    if (self->_jsContext.exception) {
+                        NSLog(@"Did fail on JSContext: %@", self->_jsContext.name);
+                        NSDictionary* userInfo = @{ NSLocalizedDescriptionKey : [self->_jsContext.exception[@"message"] toString] };
                         error = [NSError errorWithDomain:@"JSTEvaluator" code:1 userInfo:userInfo];
-                        _jsContext.exception = nil;
+                        self->_jsContext.exception = nil;
                     }
                 }
                 [self _callCompletionHandler:task.completionHandler ifNeededWithError:error];
@@ -324,8 +324,8 @@ static void __JSTRunLoopSourceCancelCallBack(void* info, CFRunLoopRef rl, CFStri
         }
 
         dispatch_barrier_sync(_jsSourcePerformQueue, ^{
-            if ([_jsContext[@"counter"] toInt32] == scriptToEvaluate)
-                dispatch_semaphore_signal(_allScriptsDone);
+            if ([self->_jsContext[@"counter"] toInt32] == scriptToEvaluate)
+                dispatch_semaphore_signal(self->_allScriptsDone);
         });
     }
 }