From d8cf5b11dcc178bb3cec8c3af2ea41935f42b8d5 Mon Sep 17 00:00:00 2001 From: chestozo Date: Wed, 27 Feb 2013 20:58:21 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D1=8F=D0=B5=D1=82=D1=81=D1=8F=20=D1=81=D0=B8=D0=B3=D0=BD?= =?UTF-8?q?=D0=B0=D1=82=D1=83=D1=80=D0=B0=20external=20=D1=84=D1=83=D0=BD?= =?UTF-8?q?=D0=BA=D1=86=D0=B8=D0=B8=20=D0=BF=D1=80=D0=B8=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/functions.24.js | 3 +++ tests/functions.24.yate | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/functions.24.js create mode 100644 tests/functions.24.yate 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) +} +