summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jsapi-libdom-operator.c2
-rw-r--r--src/jsapi-libdom-property.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/jsapi-libdom-operator.c b/src/jsapi-libdom-operator.c
index c9822e8..7633331 100644
--- a/src/jsapi-libdom-operator.c
+++ b/src/jsapi-libdom-operator.c
@@ -206,7 +206,7 @@ static int output_return(struct binding *binding,
case WEBIDL_TYPE_STRING:
/* JSString * */
fprintf(binding->outfile,
- "\tJSAPI_SET_RVAL(cx, vp, STRING_TO_JSVAL(%s));\n",
+ "\tJSAPI_SET_RVAL(cx, vp, JSAPI_STRING_TO_JSVAL(%s));\n",
ident);
break;
diff --git a/src/jsapi-libdom-property.c b/src/jsapi-libdom-property.c
index e9f7706..702de15 100644
--- a/src/jsapi-libdom-property.c
+++ b/src/jsapi-libdom-property.c
@@ -212,7 +212,7 @@ static int output_return(struct binding *binding,
case WEBIDL_TYPE_STRING:
/* JSString * */
fprintf(binding->outfile,
- "\tJS_SET_RVAL(cx, vp, STRING_TO_JSVAL(%s));\n",
+ "\tJS_SET_RVAL(cx, vp, JSAPI_STRING_TO_JSVAL(%s));\n",
ident);
break;