Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
SpiderMonkey 1.8.5 JS::CallArgsFromVp

When I'm working with Native calls at JavaScript engine SpiderMonkey 1.8.5 I've found in documentation such example:

static bool
 Func(JSContext* cx, unsigned argc, JS::Value* vp)
 {
    JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
 }

but it from SpiderMonkey 17. In SP 1.8.5 I have CallArgs, but have no CallArgsFromVp(), and it is not clear how to convert JS::Value* to JS::CallArgs.
Is there some analogue \ prototype for CallArgsFromVp in SP 1.8.5?
How to use such Native logic with SP 1.8.5?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In SP 1.8.5 JS_CALLEE, JS_THIS macros must be used instead.
In my case it looks like:

static bool
 Func(JSContext* cx, unsigned argc, jsval *vp)
 {
    JSObject *obj = JS_THIS_OBJECT(cx, vp);
 }


Who is awesome? I'm awesome!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!