瀏覽代碼

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 年之前
父節點
當前提交
388854cbf8
共有 1 個文件被更改,包括 2 次插入1 次删除
  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#