[qjs] Revert change to JS_SetMaxStackSize

Part 2a of a 4 part refactor.

Bug: 60081
Change-Id: I02c7e47517f03ff81901966012a9027033aaada0
diff --git a/quickjs.c b/quickjs.c
index aef31cf..ebaccb3 100644
--- a/quickjs.c
+++ b/quickjs.c
@@ -2329,18 +2329,17 @@
 
 // TODO(fxb/60081): For the purposes of backwards-compatibility, we renamed
 // upstream's JS_SetMaxStackSize to JS_SetMaxStackSize_New.  Migrate callers of
-// JS_SetMaxStackSize to JS_SetMaxStackSize_New, then make JS_SetMaxStackSize a
-// duplicate of JS_SetMaxStackSize_New, then migrate callers to
-// JS_SetMaxStackSize, then delete JS_SetMaxStackSize_New.
+// JS_SetMaxStackSize to JS_SetMaxStackSize_New (check) , then make
+// JS_SetMaxStackSize a duplicate of JS_SetMaxStackSize_New (check), then
+// migrate callers to JS_SetMaxStackSize, then delete JS_SetMaxStackSize_New.
 
 void JS_SetMaxStackSize_New(JSRuntime *rt, size_t stack_size)
 {
     rt->stack_size = stack_size;
 }
 
-void JS_SetMaxStackSize(JSContext *ctx, size_t stack_size)
+void JS_SetMaxStackSize(JSRuntime *rt, size_t stack_size)
 {
-    JSRuntime *rt = ctx->rt;
     rt->stack_size = stack_size;
 }
 
diff --git a/quickjs.h b/quickjs.h
index 3b7f265..4b2356a 100644
--- a/quickjs.h
+++ b/quickjs.h
@@ -336,11 +336,11 @@
 
 // TODO(fxb/60081): For the purposes of backwards-compatibility, we renamed
 // upstream's JS_SetMaxStackSize to JS_SetMaxStackSize_New.  Migrate callers of
-// JS_SetMaxStackSize to JS_SetMaxStackSize_New, then make JS_SetMaxStackSize a
-// duplicate of JS_SetMaxStackSize_New, then migrate callers to
-// JS_SetMaxStackSize, then delete JS_SetMaxStackSize_New.
+// JS_SetMaxStackSize to JS_SetMaxStackSize_New (check), then make
+// JS_SetMaxStackSize a duplicate of JS_SetMaxStackSize_New (check), then
+// migrate callers to JS_SetMaxStackSize, then delete JS_SetMaxStackSize_New.
 void JS_SetMaxStackSize_New(JSRuntime *rt, size_t stack_size);
-void JS_SetMaxStackSize(JSContext *ctx, size_t stack_size);
+void JS_SetMaxStackSize(JSRuntime *rt, size_t stack_size);
 
 JSRuntime *JS_NewRuntime2(const JSMallocFunctions *mf, void *opaque);
 void JS_FreeRuntime(JSRuntime *rt);