diff --git a/tests/functions.24.js b/tests/functions.24.js new file mode 100644 index 0000000..fd14840 --- /dev/null +++ b/tests/functions.24.js @@ -0,0 +1,3 @@ +yr.externals.makeObject = function(scalar1, scalar2) { + return { val1: scalar1, val2: scalar2 }; +}; diff --git a/tests/functions.24.yate b/tests/functions.24.yate new file mode 100644 index 0000000..9f73ddb --- /dev/null +++ b/tests/functions.24.yate @@ -0,0 +1,14 @@ +/// { +/// description: 'external function signature is not checked', +/// externals: 'functions.24.js', +/// data: {}, +/// result: '', +/// throws: true +/// } + +external object makeObject(scalar) + +match / { + o = makeObject(1, 2) +} +