Support passing of string and object arguments to plugins' bound functions.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
assert(Jerry.io.platform === "linux");
|
||||
|
||||
Jerry.io.print_uint32 (1);
|
||||
Jerry.io.print_string (Jerry.io.platform);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -30,3 +31,15 @@ catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// Argument type mismatch
|
||||
Jerry.io.print_string (1);
|
||||
|
||||
assert (false);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user