소스 검색

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#