Support passing of string and object arguments to plugins' bound functions.
This commit is contained in:
1 parent
c8f78c5d28
commit
6b0b669c14
9 files changed
+202
-25
No files matched your search
@@ -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