diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-21 13:08:38 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-21 13:08:38 +0200 |
commit | 322fb503de8c38b0ee3ba1625e2d9197a4f8cba4 (patch) | |
tree | e954620d1199749ea4cfb275aef431f40450bd44 | |
parent | 525a0a93eafad836b0680e1c7a9fe0f8a0387fbf (diff) |
tests: fix `this` context testcase
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | tests/02_runtime/02_this | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/02_runtime/02_this b/tests/02_runtime/02_this index 2c47811..d41be7f 100644 --- a/tests/02_runtime/02_this +++ b/tests/02_runtime/02_this @@ -1,17 +1,14 @@ The "this" object accesses the current function context. -- Expect stdout -- - --- End -- true true +-- End -- + -- Testcase -- {% - local g = this; - // Functions not invoked on objects have no this context function test() { - print(this, "\n"); return (this === null); } |