Title: Randomly throws exception for the same code · Issue #101 · JavascriptNet/Javascript.Net · GitHub
Open Graph Title: Randomly throws exception for the same code · Issue #101 · JavascriptNet/Javascript.Net
X Title: Randomly throws exception for the same code · Issue #101 · JavascriptNet/Javascript.Net
Description: Hi, I've got the following code `string code = "function imageUrl(){ if(seasonType==="summer"){ return "https://i.ibb.co/P9Sz25M/summer.jpg\"; } if(seasonType==="winter"){ return "https://cdn.pixabay.com/photo/2018/11/22/12/48/clothing-3...
Open Graph Description: Hi, I've got the following code `string code = "function imageUrl(){ if(seasonType==="summer"){ return "https://i.ibb.co/P9Sz25M/summer.jpg\"; } if(seasonType==="winter"){ return "https://cdn.pixab...
X Description: Hi, I've got the following code `string code = "function imageUrl(){ if(seasonType==="summer"){ return "https://i.ibb.co/P9Sz25M/summer.jpg\"; } if(seasonType==="w...
Opengraph URL: https://github.com/JavascriptNet/Javascript.Net/issues/101
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Randomly throws exception for the same code","articleBody":"Hi,\r\n\r\nI've got the following code\r\n\r\n`string code = \"function imageUrl(){ if(seasonType===\\\"summer\\\"){ return \\\"https://i.ibb.co/P9Sz25M/summer.jpg\\\"; } if(seasonType===\\\"winter\\\"){ return \\\"https://cdn.pixabay.com/photo/2018/11/22/12/48/clothing-3831823_1280.jpg\\\"; } if(seasonType===\\\"spring\\\"){ return \\\"https://cdn.pixabay.com/photo/2016/11/16/03/55/blue-1828094_1280.jpg\\\"; } }; imageUrl();\";\r\n\r\nvar javascriptContext = new JavascriptContext();\r\njavascriptContext.SetParameter(\"seasonType\", \"summer\");\r\nvar expressionJSResult = javascriptContext.Run(code);\r\njavascriptContext.Dispose();\r\nConsole.WriteLine(expressionJSResult.ToString());`\r\n\r\nMy issue is that when the same code is run it works sometimes and sometimes it throws the below exception.\r\n\r\n`at Noesis.Javascript.CompileScript(Local\u003cv8::Script\u003e* , Char* source_code, Char* resource_name)\r\n at Noesis.Javascript.JavascriptContext.Run(String iSourceCode)\r\n at Program.\u003cMain\u003e$(String[] args)`\r\n\r\nAppreciate any help on this. I'm using .Net version 4.8.","author":{"url":"https://github.com/dnVanz","@type":"Person","name":"dnVanz"},"datePublished":"2022-07-24T06:32:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/101/Javascript.Net/issues/101"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a4f21937-3549-4aa4-6c97-03ef2f551701 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8950:A27E5:2C3EC03:39E750D:69770645 |
| html-safe-nonce | 07ea274ba5ec6de39dbbd8938f3af6f5be1ccd892a86cdfc5dc334bbf01f9e6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTUwOkEyN0U1OjJDM0VDMDM6MzlFNzUwRDo2OTc3MDY0NSIsInZpc2l0b3JfaWQiOiI0MTQ3MjcyMDY5NzY4NzQyNDY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f834a9117c4d29aaa0ef63c8db97c034d318cfbd9cab0db979c8e86556f2c63d |
| hovercard-subject-tag | issue:1315823138 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavascriptNet/Javascript.Net/101/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e13088ff2ecf018b179799ac5e48f7faf0b08c4952b378cc4d469e7f6201fd8/JavascriptNet/Javascript.Net/issues/101 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e13088ff2ecf018b179799ac5e48f7faf0b08c4952b378cc4d469e7f6201fd8/JavascriptNet/Javascript.Net/issues/101 |
| og:image:alt | Hi, I've got the following code `string code = "function imageUrl(){ if(seasonType==="summer"){ return "https://i.ibb.co/P9Sz25M/summer.jpg\"; } if(seasonType==="winter"){ return "https://cdn.pixab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dnVanz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavascriptNet/Javascript.Net git https://github.com/JavascriptNet/Javascript.Net.git |
| octolytics-dimension-user_id | 7556289 |
| octolytics-dimension-user_login | JavascriptNet |
| octolytics-dimension-repository_id | 9036853 |
| octolytics-dimension-repository_nwo | JavascriptNet/Javascript.Net |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9036853 |
| octolytics-dimension-repository_network_root_nwo | JavascriptNet/Javascript.Net |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width