Skip to content

How do I control the name of a function? #637

Answered by dop251
stroiman asked this question in Q&A
Discussion options

You must be logged in to vote

The name property in a function is defined as non-writable, however it is configurable which means you can redefine it with Window.DefineDataProperty("name", vm.ToValue("Window"), FLAG_NOT_SET, FLAG_NOT_SET, FLAG_NOT_SET)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stroiman
Comment options

Answer selected by stroiman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants