Streamline code.

This commit is contained in:
Stephen Chung
2020-06-14 22:44:59 +08:00
parent f26c12b8ea
commit 31d2fa410b
2 changed files with 26 additions and 24 deletions

View File

@@ -2207,7 +2207,7 @@ let a = new_ts(); // constructor function
a.field = 500; // property setter
a.update(); // method call, 'a' can be modified
update(a); // <- this de-sugars to 'a.update()' this if 'a' is a simple variable
update(a); // <- this de-sugars to 'a.update()' thus if 'a' is a simple variable
// unlike scripted functions, 'a' can be modified and is not a copy
let array = [ a ];