diff options
Diffstat (limited to 'tests/02_runtime/02_this')
-rw-r--r-- | tests/02_runtime/02_this | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/02_runtime/02_this b/tests/02_runtime/02_this index e629853..d8e85d2 100644 --- a/tests/02_runtime/02_this +++ b/tests/02_runtime/02_this @@ -13,7 +13,8 @@ true } // When invoked, "this" will point to the object containing the function - let o = { + let o; + o = { test: function() { return (this === o); } @@ -34,7 +35,8 @@ true -- Testcase -- {% - let o = { + let o; + o = { test: function() { return (this === o); } @@ -45,3 +47,4 @@ true print(o.test(dummy.foo, dummy.bar), "\n"); print(o.test(dummy.foo, o.test(dummy.foo, dummy.bar)), "\n"); %} +-- End -- |