Title: SyntaxError: Unexpected reserved word · Issue #43 · JavascriptNet/Javascript.Net · GitHub
Open Graph Title: SyntaxError: Unexpected reserved word · Issue #43 · JavascriptNet/Javascript.Net
X Title: SyntaxError: Unexpected reserved word · Issue #43 · JavascriptNet/Javascript.Net
Description: I've tryed out these interpreter. An simple console.log will work - But when i try to use ES6 classes, i've got following Exception: Noesis.Javascript.JavascriptException: SyntaxError: Unexpected reserved word bei Noesis.Javascript.Compi...
Open Graph Description: I've tryed out these interpreter. An simple console.log will work - But when i try to use ES6 classes, i've got following Exception: Noesis.Javascript.JavascriptException: SyntaxError: Unexpected r...
X Description: I've tryed out these interpreter. An simple console.log will work - But when i try to use ES6 classes, i've got following Exception: Noesis.Javascript.JavascriptException: SyntaxError: Unex...
Opengraph URL: https://github.com/JavascriptNet/Javascript.Net/issues/43
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SyntaxError: Unexpected reserved word","articleBody":"I've tryed out these interpreter. An simple `console.log` will work - But when i try to use `ES6` classes, i've got following Exception:\r\n\r\n```\r\nNoesis.Javascript.JavascriptException: SyntaxError: Unexpected reserved word\r\n\r\n bei Noesis.Javascript.CompileScript(Local\u003cv8::Script\u003e* , Char* source_code, Char* resource_name)\r\n bei Noesis.Javascript.JavascriptContext.Run(String iSourceCode)\r\n bei ReactSharp.Program.Main(String[] args) in c:\\Users\\info\\Documents\\SharpDevelop Projects\\ReactSharp\\ReactSharp\\Program.cs:Zeile 48.\r\n```\r\n\r\n**Program.cs**\r\n```\r\nusing System;\r\nusing System.IO;\r\nusing Noesis.Javascript;\r\n\r\nnamespace Sample {\r\n\tpublic class SystemConsole {\r\n\t\tpublic SystemConsole() {}\r\n\r\n\t\tpublic void log(string iString) {\r\n\t\t\tConsole.WriteLine(iString);\r\n\t\t\tSystem.Diagnostics.Debug.WriteLine(iString);\r\n\t\t}\r\n\t}\r\n\r\n\tinternal sealed class Program {\r\n\t\t[STAThread]\r\n\t\tprivate static void Main(string[] args) {\r\n\t\t\tSystem.Diagnostics.Debug.WriteLine(\"HI\");\r\n\t\t\r\n\t\t\tusing(JavascriptContext context = new JavascriptContext()) {\r\n\t\t\t\tcontext.SetParameter(\"console\", new SystemConsole());\r\n\t\t\t\t\r\n\t\t\t\t// Read the \"main.js\"\r\n\t\t\t\tstring contents = File.ReadAllText(@\"main.js\");\r\n\t\t\t\t\r\n\t\t\t\t// Run the script\r\n\t\t\t\tcontext.Run(contents);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\n**main.js**\r\n```\r\nclass Example {\r\n\tconstructor() {\r\n\t\tconsole.log(\"Hello World, APP!\");\r\n\t}\r\n}\r\n```","author":{"url":"https://github.com/Bizarrus","@type":"Person","name":"Bizarrus"},"datePublished":"2018-07-14T14:11:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/43/Javascript.Net/issues/43"}
| 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:632a86e9-edee-0c5e-bb07-17d1c6123ce5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9ECA:2EA41:6BFB3E5:8C1121D:697672CF |
| html-safe-nonce | b12b3b35880e1fcf67769409f84381c97aa4fdcb842e4ade31690675d31963a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUNBOjJFQTQxOjZCRkIzRTU6OEMxMTIxRDo2OTc2NzJDRiIsInZpc2l0b3JfaWQiOiI2NTE3MDkxNjI3NjI4MzkzMTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 244eacef763b66d414a80a1b41d956e0f7d9c252ded43a29721c99fb907fe611 |
| hovercard-subject-tag | issue:341239204 |
| 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/43/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5d36c02c614c983a35402ab437ae46177e1e6e3e8e481cb352a7157dd6c3a172/JavascriptNet/Javascript.Net/issues/43 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5d36c02c614c983a35402ab437ae46177e1e6e3e8e481cb352a7157dd6c3a172/JavascriptNet/Javascript.Net/issues/43 |
| og:image:alt | I've tryed out these interpreter. An simple console.log will work - But when i try to use ES6 classes, i've got following Exception: Noesis.Javascript.JavascriptException: SyntaxError: Unexpected r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bizarrus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| 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 | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width