{"action":"created","comment":{"url":"https://api.github.com/repos/cesanta/v7/pulls/comments/22939185","id":22939185,"diff_hunk":"@@ -325,26 +325,26 @@ static val_t i_eval_expr(struct v7 *v7, struct ast *a, ast_off_t *pos,\n         name = ast_get_inlined_data(a, *pos, &name_len);\n         ast_move_to_children(a, pos);\n         v1 = i_eval_expr(v7, a, pos, scope);\n-        v7_set_property_value(v7, res, name, name_len, 0, v1);\n+        v7_set_property(v7, res, name, name_len, 0, v1);\n       }\n       return res;\n     case AST_TRUE:\n-      return v7_create_value(v7, V7_TYPE_BOOLEAN, 1);\n+      return v7_create_boolean(1);\n     case AST_FALSE:\n-      return v7_create_value(v7, V7_TYPE_BOOLEAN, 0);\n+      return v7_create_boolean(0);\n     case AST_NULL:\n-      return v7_create_value(v7, V7_TYPE_NULL);\n+      return v7_create_null();\n     case AST_NOP:\n     case AST_UNDEFINED:\n-      return v7_create_value(v7, V7_TYPE_UNDEFINED);\n+      return v7_create_undefined();","path":"src/interpreter.c","position":100,"original_position":100,"commit_id":"fab5b66785b8a65a90dc7cb571edb2d0ec0a018d","original_commit_id":"fab5b66785b8a65a90dc7cb571edb2d0ec0a018d","user":{"login":"mmikulicic","id":52673,"avatar_url":"https://avatars.githubusercontent.com/u/52673?v=3","gravatar_id":"","url":"https://api.github.com/users/mmikulicic","html_url":"https://github.com/mmikulicic","followers_url":"https://api.github.com/users/mmikulicic/followers","following_url":"https://api.github.com/users/mmikulicic/following{/other_user}","gists_url":"https://api.github.com/users/mmikulicic/gists{/gist_id}","starred_url":"https://api.github.com/users/mmikulicic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmikulicic/subscriptions","organizations_url":"https://api.github.com/users/mmikulicic/orgs","repos_url":"https://api.github.com/users/mmikulicic/repos","events_url":"https://api.github.com/users/mmikulicic/events{/privacy}","received_events_url":"https://api.github.com/users/mmikulicic/received_events","type":"User","site_admin":false},"body":"return V7_UNDEFINED","created_at":"2015-01-14T14:31:23Z","updated_at":"2015-01-14T14:31:23Z","html_url":"https://github.com/cesanta/v7/pull/145#discussion_r22939185","pull_request_url":"https://api.github.com/repos/cesanta/v7/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/cesanta/v7/pulls/comments/22939185"},"html":{"href":"https://github.com/cesanta/v7/pull/145#discussion_r22939185"},"pull_request":{"href":"https://api.github.com/repos/cesanta/v7/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/cesanta/v7/pulls/145","id":27349004,"html_url":"https://github.com/cesanta/v7/pull/145","diff_url":"https://github.com/cesanta/v7/pull/145.diff","patch_url":"https://github.com/cesanta/v7/pull/145.patch","issue_url":"https://api.github.com/repos/cesanta/v7/issues/145","number":145,"state":"open","locked":false,"title":"Split v7_create_value to type-specific functions","user":{"login":"cpq","id":601816,"avatar_url":"https://avatars.githubusercontent.com/u/601816?v=3","gravatar_id":"","url":"https://api.github.com/users/cpq","html_url":"https://github.com/cpq","followers_url":"https://api.github.com/users/cpq/followers","following_url":"https://api.github.com/users/cpq/following{/other_user}","gists_url":"https://api.github.com/users/cpq/gists{/gist_id}","starred_url":"https://api.github.com/users/cpq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpq/subscriptions","organizations_url":"https://api.github.com/users/cpq/orgs","repos_url":"https://api.github.com/users/cpq/repos","events_url":"https://api.github.com/users/cpq/events{/privacy}","received_events_url":"https://api.github.com/users/cpq/received_events","type":"User","site_admin":false},"body":"Added $(realpath) to makefiles to let IDE know the exact file location to jump to compilation errors.\r\nFixed warning in interpreter.c\r\nExported creation functions to v7.h","created_at":"2015-01-14T13:22:34Z","updated_at":"2015-01-14T14:31:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"371d047c02ba1b58bcaf0d27c0552fe26ef23e33","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cesanta/v7/pulls/145/commits","review_comments_url":"https://api.github.com/repos/cesanta/v7/pulls/145/comments","review_comment_url":"https://api.github.com/repos/cesanta/v7/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cesanta/v7/issues/145/comments","statuses_url":"https://api.github.com/repos/cesanta/v7/statuses/fab5b66785b8a65a90dc7cb571edb2d0ec0a018d","head":{"label":"cesanta:no_create_value","ref":"no_create_value","sha":"fab5b66785b8a65a90dc7cb571edb2d0ec0a018d","user":{"login":"cesanta","id":5111322,"avatar_url":"https://avatars.githubusercontent.com/u/5111322?v=3","gravatar_id":"","url":"https://api.github.com/users/cesanta","html_url":"https://github.com/cesanta","followers_url":"https://api.github.com/users/cesanta/followers","following_url":"https://api.github.com/users/cesanta/following{/other_user}","gists_url":"https://api.github.com/users/cesanta/gists{/gist_id}","starred_url":"https://api.github.com/users/cesanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesanta/subscriptions","organizations_url":"https://api.github.com/users/cesanta/orgs","repos_url":"https://api.github.com/users/cesanta/repos","events_url":"https://api.github.com/users/cesanta/events{/privacy}","received_events_url":"https://api.github.com/users/cesanta/received_events","type":"Organization","site_admin":false},"repo":{"id":15176507,"name":"v7","full_name":"cesanta/v7","owner":{"login":"cesanta","id":5111322,"avatar_url":"https://avatars.githubusercontent.com/u/5111322?v=3","gravatar_id":"","url":"https://api.github.com/users/cesanta","html_url":"https://github.com/cesanta","followers_url":"https://api.github.com/users/cesanta/followers","following_url":"https://api.github.com/users/cesanta/following{/other_user}","gists_url":"https://api.github.com/users/cesanta/gists{/gist_id}","starred_url":"https://api.github.com/users/cesanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesanta/subscriptions","organizations_url":"https://api.github.com/users/cesanta/orgs","repos_url":"https://api.github.com/users/cesanta/repos","events_url":"https://api.github.com/users/cesanta/events{/privacy}","received_events_url":"https://api.github.com/users/cesanta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cesanta/v7","description":"Embedded JavaScript engine for C/C++","fork":false,"url":"https://api.github.com/repos/cesanta/v7","forks_url":"https://api.github.com/repos/cesanta/v7/forks","keys_url":"https://api.github.com/repos/cesanta/v7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cesanta/v7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cesanta/v7/teams","hooks_url":"https://api.github.com/repos/cesanta/v7/hooks","issue_events_url":"https://api.github.com/repos/cesanta/v7/issues/events{/number}","events_url":"https://api.github.com/repos/cesanta/v7/events","assignees_url":"https://api.github.com/repos/cesanta/v7/assignees{/user}","branches_url":"https://api.github.com/repos/cesanta/v7/branches{/branch}","tags_url":"https://api.github.com/repos/cesanta/v7/tags","blobs_url":"https://api.github.com/repos/cesanta/v7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cesanta/v7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cesanta/v7/git/refs{/sha}","trees_url":"https://api.github.com/repos/cesanta/v7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cesanta/v7/statuses/{sha}","languages_url":"https://api.github.com/repos/cesanta/v7/languages","stargazers_url":"https://api.github.com/repos/cesanta/v7/stargazers","contributors_url":"https://api.github.com/repos/cesanta/v7/contributors","subscribers_url":"https://api.github.com/repos/cesanta/v7/subscribers","subscription_url":"https://api.github.com/repos/cesanta/v7/subscription","commits_url":"https://api.github.com/repos/cesanta/v7/commits{/sha}","git_commits_url":"https://api.github.com/repos/cesanta/v7/git/commits{/sha}","comments_url":"https://api.github.com/repos/cesanta/v7/comments{/number}","issue_comment_url":"https://api.github.com/repos/cesanta/v7/issues/comments/{number}","contents_url":"https://api.github.com/repos/cesanta/v7/contents/{+path}","compare_url":"https://api.github.com/repos/cesanta/v7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cesanta/v7/merges","archive_url":"https://api.github.com/repos/cesanta/v7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cesanta/v7/downloads","issues_url":"https://api.github.com/repos/cesanta/v7/issues{/number}","pulls_url":"https://api.github.com/repos/cesanta/v7/pulls{/number}","milestones_url":"https://api.github.com/repos/cesanta/v7/milestones{/number}","notifications_url":"https://api.github.com/repos/cesanta/v7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cesanta/v7/labels{/name}","releases_url":"https://api.github.com/repos/cesanta/v7/releases{/id}","created_at":"2013-12-13T23:28:04Z","updated_at":"2015-01-13T20:23:44Z","pushed_at":"2015-01-14T13:25:46Z","git_url":"git://github.com/cesanta/v7.git","ssh_url":"git@github.com:cesanta/v7.git","clone_url":"https://github.com/cesanta/v7.git","svn_url":"https://github.com/cesanta/v7","homepage":"","size":10052,"stargazers_count":46,"watchers_count":46,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":25,"forks":12,"open_issues":25,"watchers":46,"default_branch":"master"}},"base":{"label":"cesanta:master","ref":"master","sha":"4554566d1ccbb2506a4f5857b0c9b66a63fb5530","user":{"login":"cesanta","id":5111322,"avatar_url":"https://avatars.githubusercontent.com/u/5111322?v=3","gravatar_id":"","url":"https://api.github.com/users/cesanta","html_url":"https://github.com/cesanta","followers_url":"https://api.github.com/users/cesanta/followers","following_url":"https://api.github.com/users/cesanta/following{/other_user}","gists_url":"https://api.github.com/users/cesanta/gists{/gist_id}","starred_url":"https://api.github.com/users/cesanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesanta/subscriptions","organizations_url":"https://api.github.com/users/cesanta/orgs","repos_url":"https://api.github.com/users/cesanta/repos","events_url":"https://api.github.com/users/cesanta/events{/privacy}","received_events_url":"https://api.github.com/users/cesanta/received_events","type":"Organization","site_admin":false},"repo":{"id":15176507,"name":"v7","full_name":"cesanta/v7","owner":{"login":"cesanta","id":5111322,"avatar_url":"https://avatars.githubusercontent.com/u/5111322?v=3","gravatar_id":"","url":"https://api.github.com/users/cesanta","html_url":"https://github.com/cesanta","followers_url":"https://api.github.com/users/cesanta/followers","following_url":"https://api.github.com/users/cesanta/following{/other_user}","gists_url":"https://api.github.com/users/cesanta/gists{/gist_id}","starred_url":"https://api.github.com/users/cesanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesanta/subscriptions","organizations_url":"https://api.github.com/users/cesanta/orgs","repos_url":"https://api.github.com/users/cesanta/repos","events_url":"https://api.github.com/users/cesanta/events{/privacy}","received_events_url":"https://api.github.com/users/cesanta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cesanta/v7","description":"Embedded JavaScript engine for C/C++","fork":false,"url":"https://api.github.com/repos/cesanta/v7","forks_url":"https://api.github.com/repos/cesanta/v7/forks","keys_url":"https://api.github.com/repos/cesanta/v7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cesanta/v7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cesanta/v7/teams","hooks_url":"https://api.github.com/repos/cesanta/v7/hooks","issue_events_url":"https://api.github.com/repos/cesanta/v7/issues/events{/number}","events_url":"https://api.github.com/repos/cesanta/v7/events","assignees_url":"https://api.github.com/repos/cesanta/v7/assignees{/user}","branches_url":"https://api.github.com/repos/cesanta/v7/branches{/branch}","tags_url":"https://api.github.com/repos/cesanta/v7/tags","blobs_url":"https://api.github.com/repos/cesanta/v7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cesanta/v7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cesanta/v7/git/refs{/sha}","trees_url":"https://api.github.com/repos/cesanta/v7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cesanta/v7/statuses/{sha}","languages_url":"https://api.github.com/repos/cesanta/v7/languages","stargazers_url":"https://api.github.com/repos/cesanta/v7/stargazers","contributors_url":"https://api.github.com/repos/cesanta/v7/contributors","subscribers_url":"https://api.github.com/repos/cesanta/v7/subscribers","subscription_url":"https://api.github.com/repos/cesanta/v7/subscription","commits_url":"https://api.github.com/repos/cesanta/v7/commits{/sha}","git_commits_url":"https://api.github.com/repos/cesanta/v7/git/commits{/sha}","comments_url":"https://api.github.com/repos/cesanta/v7/comments{/number}","issue_comment_url":"https://api.github.com/repos/cesanta/v7/issues/comments/{number}","contents_url":"https://api.github.com/repos/cesanta/v7/contents/{+path}","compare_url":"https://api.github.com/repos/cesanta/v7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cesanta/v7/merges","archive_url":"https://api.github.com/repos/cesanta/v7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cesanta/v7/downloads","issues_url":"https://api.github.com/repos/cesanta/v7/issues{/number}","pulls_url":"https://api.github.com/repos/cesanta/v7/pulls{/number}","milestones_url":"https://api.github.com/repos/cesanta/v7/milestones{/number}","notifications_url":"https://api.github.com/repos/cesanta/v7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cesanta/v7/labels{/name}","releases_url":"https://api.github.com/repos/cesanta/v7/releases{/id}","created_at":"2013-12-13T23:28:04Z","updated_at":"2015-01-13T20:23:44Z","pushed_at":"2015-01-14T13:25:46Z","git_url":"git://github.com/cesanta/v7.git","ssh_url":"git@github.com:cesanta/v7.git","clone_url":"https://github.com/cesanta/v7.git","svn_url":"https://github.com/cesanta/v7","homepage":"","size":10052,"stargazers_count":46,"watchers_count":46,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":25,"forks":12,"open_issues":25,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cesanta/v7/pulls/145"},"html":{"href":"https://github.com/cesanta/v7/pull/145"},"issue":{"href":"https://api.github.com/repos/cesanta/v7/issues/145"},"comments":{"href":"https://api.github.com/repos/cesanta/v7/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/cesanta/v7/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/cesanta/v7/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cesanta/v7/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/cesanta/v7/statuses/fab5b66785b8a65a90dc7cb571edb2d0ec0a018d"}}}}