Răsfoiți Sursa

Highlighting that `Person.Name` is changed from JS (#551)

I believe the intention of the sample was to show that the CLR object is changed
Jacob Foshee 6 ani în urmă
părinte
comite
388854cbf8
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -53,8 +53,9 @@ You can also directly pass POCOs or anonymous objects and use them from JavaScri
 
     var engine = new Engine()
         .SetValue("p", p)
-        .Execute("p.Name === 'Mickey Mouse'")
+        .Execute("p.Name = 'Minnie'")
         ;
+    Assert.AreEqual("Minnie", p.Name);
 ```
 You can invoke JavaScript function reference
 ```c#