Ejemplo n.º 1
0
void test(duk_context *ctx) {
	TEST_SAFE_CALL(test_1a);
	TEST_PCALL(test_1b);
	TEST_PCALL(test_1c);
	TEST_SAFE_CALL(test_1d);
	TEST_SAFE_CALL(test_1e);
	TEST_SAFE_CALL(test_1f);

	TEST_SAFE_CALL(test_2a);
	TEST_PCALL(test_2b);
	TEST_PCALL(test_2c);
	TEST_SAFE_CALL(test_2d);
	TEST_SAFE_CALL(test_2e);

	TEST_SAFE_CALL(test_3a);
	TEST_PCALL(test_3b);
	TEST_SAFE_CALL(test_3c);
	TEST_SAFE_CALL(test_3d);
}
Ejemplo n.º 2
0
void test(duk_context *ctx) {
	TEST_SAFE_CALL(test_1a);
	TEST_PCALL(test_1b);
	TEST_PCALL(test_1c);
	TEST_SAFE_CALL(test_1d);
	TEST_SAFE_CALL(test_1e);
	TEST_SAFE_CALL(test_1f);

	TEST_SAFE_CALL(test_2a);
	TEST_PCALL(test_2b);
	TEST_PCALL(test_2c);
	TEST_SAFE_CALL(test_2d);
	/* FIXME: currently error message contains the actual DUK_INVALID_INDEX
	 * value, nonportable */
	TEST_SAFE_CALL(test_2e);

	TEST_SAFE_CALL(test_3a);
	TEST_PCALL(test_3b);
	TEST_SAFE_CALL(test_3c);
	/* FIXME: currently error message contains the actual DUK_INVALID_INDEX
	 * value, nonportable */
	TEST_SAFE_CALL(test_3d);
}
Ejemplo n.º 3
0
void test(duk_context *ctx) {
	TEST_SAFE_CALL(test_delprop_a_safecall);
	TEST_SAFE_CALL(test_delprop_b_safecall);
	TEST_PCALL(test_delprop_b);
	TEST_SAFE_CALL(test_delprop_c_safecall);
	TEST_PCALL(test_delprop_c);
	TEST_SAFE_CALL(test_delprop_d_safecall);
	TEST_PCALL(test_delprop_d);
	TEST_SAFE_CALL(test_delprop_e_safecall);
	TEST_PCALL(test_delprop_e);
	TEST_SAFE_CALL(test_delprop_f_safecall);
	TEST_PCALL(test_delprop_f);
	TEST_SAFE_CALL(test_delprop_g_safecall);
	TEST_PCALL(test_delprop_g);

	TEST_SAFE_CALL(test_delpropstring_a_safecall);
	TEST_SAFE_CALL(test_delpropstring_b_safecall);
	TEST_PCALL(test_delpropstring_b);
	TEST_SAFE_CALL(test_delpropstring_c_safecall);
	TEST_PCALL(test_delpropstring_c);
	TEST_SAFE_CALL(test_delpropstring_d_safecall);
	TEST_PCALL(test_delpropstring_d);
	TEST_SAFE_CALL(test_delpropstring_e_safecall);
	TEST_PCALL(test_delpropstring_e);
	TEST_SAFE_CALL(test_delpropstring_f_safecall);
	TEST_PCALL(test_delpropstring_f);
	TEST_SAFE_CALL(test_delpropstring_g_safecall);
	TEST_PCALL(test_delpropstring_g);

	TEST_SAFE_CALL(test_delpropindex_a_safecall);
	TEST_SAFE_CALL(test_delpropindex_b_safecall);
	TEST_PCALL(test_delpropindex_b);
	TEST_SAFE_CALL(test_delpropindex_c_safecall);
	TEST_PCALL(test_delpropindex_c);
	TEST_SAFE_CALL(test_delpropindex_d_safecall);
	TEST_PCALL(test_delpropindex_d);

	TEST_SAFE_CALL(test_delproplstring_a_safecall);
	TEST_PCALL(test_delproplstring_a);
}
Ejemplo n.º 4
0
void test(duk_context *ctx) {
	TEST_SAFE_CALL(test_put);  /* outside: non-strict */
	TEST_PCALL(test_put);      /* inside: strict */
}