Browse Source

API test warning fix trivia

pull/1625/head
Sami Vaarala 7 years ago
parent
commit
7ac7e57dca
  1. 1
      tests/api/test-check-require-stack-top.c
  2. 4
      tests/api/test-pcall-prop-obj-is-key.c
  3. 4
      tests/api/test-safe-call-invalid-nargs.c
  4. 6
      tests/api/test-safe-call-invalid-nrets.c

1
tests/api/test-check-require-stack-top.c

@ -136,7 +136,6 @@ static duk_ret_t require_1_inner(duk_context *ctx) {
}
static duk_ret_t require_1(duk_context *ctx, void *udata) {
int i;
duk_ret_t rc;
(void) udata;

4
tests/api/test-pcall-prop-obj-is-key.c

@ -28,6 +28,8 @@ final top: 1
static duk_ret_t test_obj_is_key(duk_context *ctx, void *udata) {
duk_int_t rc;
(void) udata;
duk_eval_string(ctx,
"({\n"
" toString: function () { print('toString() called'); return 'myProp' },\n"
@ -58,6 +60,8 @@ static duk_ret_t test_obj_is_key(duk_context *ctx, void *udata) {
static duk_ret_t test_obj_is_arg(duk_context *ctx, void *udata) {
duk_int_t rc;
(void) udata;
duk_push_string(ctx, "myProp");
duk_eval_string(ctx,

4
tests/api/test-safe-call-invalid-nargs.c

@ -20,6 +20,8 @@ static duk_ret_t dummy(duk_context *ctx, void *udata) {
static duk_ret_t test_nargs_too_large(duk_context *ctx, void *udata) {
duk_int_t rc;
(void) udata;
duk_push_null(ctx);
duk_push_null(ctx);
duk_push_null(ctx);
@ -35,6 +37,8 @@ static duk_ret_t test_nargs_too_large(duk_context *ctx, void *udata) {
static duk_ret_t test_nargs_minus1(duk_context *ctx, void *udata) {
duk_int_t rc;
(void) udata;
duk_push_null(ctx);
duk_push_null(ctx);
duk_push_null(ctx);

6
tests/api/test-safe-call-invalid-nrets.c

@ -25,6 +25,8 @@ static duk_ret_t dummy(duk_context *ctx, void *udata) {
static duk_ret_t test_nrets_too_large(duk_context *ctx, void *udata) {
duk_int_t rc;
(void) udata;
duk_push_null(ctx);
duk_push_null(ctx);
duk_push_null(ctx);
@ -44,6 +46,8 @@ static duk_ret_t test_nrets_too_large(duk_context *ctx, void *udata) {
static duk_ret_t test_nrets_too_large_fixed(duk_context *ctx, void *udata) {
duk_int_t rc;
(void) udata;
duk_push_null(ctx);
duk_push_null(ctx);
duk_push_null(ctx);
@ -64,6 +68,8 @@ static duk_ret_t test_nrets_too_large_fixed(duk_context *ctx, void *udata) {
static duk_ret_t test_nrets_minus1(duk_context *ctx, void *udata) {
duk_int_t rc;
(void) udata;
duk_push_null(ctx);
duk_push_null(ctx);
duk_push_null(ctx);

Loading…
Cancel
Save