Skip to content

How do I get the function name from JSValue created with JS_NewCFunction2 #1127

Closed Answered by vincentparrett
vincentparrett asked this question in Q&A
Discussion options

You must be logged in to vote

FWIW, I got past this, using a lookup table for the function names and passing the index through the magic parameter. I was just able to successfully run this script

function foo() {
  var fs = new ActiveXObject('Scripting.FilesystemObject');
  var a = fs.CreateTextFile("c:\\temp\\testfile.txt", true);
  a.WriteLine("This is a test.");
  a.Close();
}

Major progress!

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@saghul
Comment options

@bnoordhuis
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@a-dato
Comment options

@a-dato
Comment options

@vincentparrett
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by vincentparrett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants