Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / js / src / jsapi-tests / valueABI.c
blob4dc10e1d48f8bab0589910f925664a1691030f44
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: set ts=8 sw=2 et tw=80 ft=c:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "jsapi.h"
9 /* See testValueABI.cpp */
11 bool C_ValueToObject(JSContext* cx, jsval v, JSObject** obj) {
12 return JS_ValueToObject(cx, v, obj);
15 jsval C_GetEmptyStringValue(JSContext* cx) {
16 return JS_GetEmptyStringValue(cx);
19 size_t C_jsvalAlignmentTest() {
20 typedef struct {
21 char c;
22 jsval v;
23 } AlignTest;
24 return sizeof(AlignTest);