[bug] new Function
string tag is "global" and prototype methods like .bind()
are missing.
#19651
Labels
question
Issues that look for answers.
wrong repo
Issues that should be opened in another repository.
I've got a weird issue. First, notice the weird output in the following screenshot, where
temp1
is a function created withnew Function(...)
:The string tag appears to be "global" (hence
[object global]
output) and.bind()
is missing!To reproduce, check out the following repo on the following branch: https://github.com/trusktr/lowclass/tree/nodejs-issue-19651
After cloning and checking out the branch, just run
node test.js
(there's no dependencies to install) which will result in the output:If you look at line
10
oftest.js
, and make uncomment line 10 and comment the next lines so it look like the following then the error goes away:So the error is somehow related to the
Class.configure
call, but I haven't found why though.As far as I know, I'm not messing with
Function.prototype
, so I don't see how.bind()
could possibly be missing from the function that I am creating. Have I missed something obvious, or is this a bug?The text was updated successfully, but these errors were encountered: