title: TypeError: "'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them"
body: <p>I am getting this error " TypeError: "'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them "  Whenever I try to call a function from my resolution in my promise. This was working perfectly fine for multiple days and now all of a sudden it doesnt work. I also tried passing the same values through the resolution in the promise. The function that is causing this error is: this.authenticateUser(registerForm.value); </p>
  
  <p>I have tried adding different values to the function parameter field doesn't work. The </p>
  
  <pre><code>import { NgForm } from '@angular/forms';
  import { Router } from '@angular/router';
  import { HttpClient, HttpHeaders } from '@angular/common/http';
  
  import { NotificationService } from '../notification/notification.service';
  import { UserInterface } from 'src/app/models';
  
  @Injectable({
    providedIn: 'root'
  })
  export class UserService {
  
    constructor(
      private httpClient: HttpClient,
      private router: Router,
      private notificationService: NotificationService,
    ) { }
  
  
    registerUser(registerForm: NgForm){
      console.log(registerForm.value)
        if( registerForm.value.email &amp;&amp; registerForm.value.userName 
            &amp;&amp; registerForm.value.firstName &amp;&amp; registerForm.value.lastName 
            &amp;&amp; registerForm.value.password &amp;&amp; registerForm.value.confirmPassword
             ){
  
              if( registerForm.value.password === registerForm.value.confirmPassword ){
  
                  this.httpClient.post(window.location.protocol + '//' + window.location.hostname + ':3000/register', registerForm.value)
                  .toPromise()
                  .then(
                    (res) =&gt; { 
                      this.authenticateUser(registerForm.value); 
                    }
                  ) .catch((err) =&gt; { console.log(err); this.notificationService.addNotification(err); })
  
              } else { this.notificationService.addNotification('Password\'s Do Not Match'); }
  
        } else { this.notificationService.addNotification('Fill In All Fields'); }
    }
  
    loginUser(loginForm: NgForm) {
      if( loginForm.value.email &amp;&amp; loginForm.value.password) {
        this.authenticateUser(loginForm.value);
      } else {
        this.notificationService.addNotification("Fill In All Field\'s");
      }
    }
  
    authenticateUser(loginData) {
      console.log.arguments(loginData);
      this.httpClient.post(window.location.protocol + "//" + window.location.hostname + ":3000/login", loginData)
        .toPromise()
        .then(
          (res: UserInterface) =&gt; { 
            localStorage.setItem('token', res.token);
            this.notificationService.addNotification('Login Successful');
            this.router.navigate((['/dashboard'])); 
          }
        )
        .catch((err) =&gt; { this.notificationService.addNotification(err); console.log(err);})
    }
  
    isLoggedIn() {
  
    }
  
  } ```
  
  Just trying to run this function in the resolution of this promise.
  
  
  </code></pre>