Skip to content

Commit

Permalink
feat(script): fix event function->body str: replace "return engineSta…
Browse files Browse the repository at this point in the history
…te" to return engineState;"
  • Loading branch information
yyc-git committed Jun 1, 2019
1 parent ec60c07 commit d1fc979
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Method = {

let _buildBodyStr = (eventFunctionName, eventFunction, str) =>
switch (eventFunction) {
| None => {j| $str \n $eventFunctionName: (script, api, engineState) => { \n return engineState \n }|j}
| None => {j| $str \n $eventFunctionName: (script, api, engineState) => { \n return engineState; \n }|j}
| Some(func) =>
let funcStr = SerializeService.serializeFunction(func);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ exports[`script event function inspector test snapshot test 1`] = `
type="text"
value="{
init: (script, api, engineState) => {
return engineState
return engineState;
},
update: (script, api, engineState) => {
return engineState
return engineState;
},
dispose: (script, api, engineState) => {
return engineState
return engineState;
}
}"
/>
Expand Down

0 comments on commit d1fc979

Please sign in to comment.