Skip to content
Snippets Groups Projects
Commit b580def0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix spurious call to JS_THIS_OBJECT()

This appears to be why valgrind on FreeBSD was failing.
You can't actually call this in a constructor because creating
this is the whole point of calling it.
parent f05b4c80
Branches
Tags
No related merge requests found
Pipeline #8059 failed
...@@ -3105,7 +3105,7 @@ JSClass js_file_class = { ...@@ -3105,7 +3105,7 @@ JSClass js_file_class = {
static JSBool static JSBool
js_file_constructor(JSContext *cx, uintN argc, jsval *arglist) js_file_constructor(JSContext *cx, uintN argc, jsval *arglist)
{ {
JSObject * obj = JS_THIS_OBJECT(cx, arglist); JSObject * obj;
jsval * argv = JS_ARGV(cx, arglist); jsval * argv = JS_ARGV(cx, arglist);
JSString* str; JSString* str;
private_t* p; private_t* p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment