Call and Apply methods throw not a function error when called from variable
Reported by
gregory....@gmail.com,
Nov 19
|
|||||||
Issue descriptionUserAgent: 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:
,
Nov 19
Duplicate of bug v8:6645.
,
Nov 19
,
Nov 20
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.
,
Nov 20
,
Nov 20
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!
,
Dec 4
,
Dec 4
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 Deleted