Re: JS::CallArgs - Arguments are not being parsed in C++
[email protected] Fri, 1 May 2020 14:46:08 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
James In Spidermonkey 52 , there is no way to create runtime.I think its take care inbuilt while creating context. One more update is that If I pass double or integer value , then I am able to extract while if I Pass String It crashes when I try to convert to char* using method JS_EncodeString. JSString *testStr = argv[0].toString(); char *proxy = JS_EncodeString(cx, testStr);//Crashes at this line where stack trace points to crash at #0 0x0000000100329361 in JSString::isLinear() const [inlined] at /Users/test/Documents/spidermonkey/mozjs-52.9.1pre1/js/src/vm/String.h:376 I checked testStr object is not null.