New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 906613 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue v8:6645
Owner: ----
Closed: Dec 4
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Call and Apply methods throw not a function error when called from variable

Reported by gregory....@gmail.com, Nov 19

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Steps to reproduce the problem:
1. Open console
2. paste:
```
var testCall = Array.prototype.slice.call;
testCall([0,1,2,3]);
// throws Uncaught TypeError: testCall is not a function
typeof testCall; // "function"
```
3. Repeat step 2 but with the `apply` method

What is the expected behavior?
The expected behavior is that call and apply should not throw an error and be called like any other function set to a variable

What went wrong?
Throws an error that it is not a function when it is a function

Did this work before? N/A 

Chrome version: 70.0.3538.102  Channel: stable
OS Version: 10.0
Flash Version:
 
CallBug.JPG
24.0 KB View Download

Comment 1 Deleted

Duplicate of bug v8:6645.
Labels: Needs-Triage-M70
Components: -Blink Blink>JavaScript
Labels: OS-Chrome
Confirmed. At the very least the error message is wrong here, as call and apply are indeed functions, even when referenced through a variable. Moving this to the JavaScript component.
Cc: jstenback@chromium.org
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET Target-72 M-72 FoundIn-71 FoundIn-70 FoundIn-72 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on reported chrome version 70.0.3538.102 also on latest chrome 72.0.3615.0 using Mac 10.14.0, Ubuntu 17.10 and Windows 10.  
 
Same behavior is seen on M60(60.0.3112.113) hence considering it as non-regression and marking it as Untriaged.

Thanks! 
Cc: yangguo@chromium.org
Components: -Blink>JavaScript Blink>JavaScript>Language
Status: Available (was: Untriaged)
Mergedinto: v8:6645
Status: Duplicate (was: Available)

Sign in to add a comment