Skip to content
Commit a2fdf358 authored by Philip Chimento's avatar Philip Chimento Committed by Philip Chimento
Browse files

js: Use JS_NewObjectWithGivenProto

In mozjs38, JS_NewObject() doesn't take a prototype JSObject anymore;
instead, JS_NewObjectWithGivenProto() is used for that purpose. The
behaviour of JS_NewObject() is changed so that it looks for a default
prototype, which is the same as passing JS::NullPtr() as the proto
parameter in mozjs31.

https://bugzilla.gnome.org/show_bug.cgi?id=776966
parent f9919329
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment