Title: Ternary operator with undefined variables · Issue #13 · deepq/embeddedjavascript · GitHub
Open Graph Title: Ternary operator with undefined variables · Issue #13 · deepq/embeddedjavascript
X Title: Ternary operator with undefined variables · Issue #13 · deepq/embeddedjavascript
Description: <%= message ? message : 'No message' %> When the variable message === undefined, the compiler throws an exception, even though a regular IF statement should just evaluate the expression to FALSE. By the way, this executes correctly: <%= ...
Open Graph Description: <%= message ? message : 'No message' %> When the variable message === undefined, the compiler throws an exception, even though a regular IF statement should just evaluate the expression to FALSE. B...
X Description: <%= message ? message : 'No message' %> When the variable message === undefined, the compiler throws an exception, even though a regular IF statement should just evaluate the expressi...
Opengraph URL: https://github.com/deepq/embeddedjavascript/issues/13
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ternary operator with undefined variables","articleBody":"```\n\u003c%= message ? message : 'No message' %>\n\nWhen the variable message === undefined, the compiler throws an exception, even \nthough a regular IF statement should just evaluate the expression to FALSE.\n\nBy the way, this executes correctly:\n\n\u003c%= typeof message != 'undefined' ? message : 'No message' %>\n\n\nI am using the ejs_1.0_developer release (downloaded two days ago) as a Node.js \nmodule. [Cygwin environment running on Windows 7]\n```\n\nOriginal issue reported on code.google.com by `yannis.k...@gmail.com` on 20 Dec 2010 at 7:11\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-08-16T10:21:04Z","url":"https://github.com/deepq/embeddedjavascript/issues/13"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:9e546687-cfeb-56cf-18f5-61767dda643f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCE0:2C3566:1560E26:1C304EE:6B012727 |
| html-safe-nonce | 3a6d41afaf508f46d6bc448cc7ee1636ecb0227972667a9ae9541c4bbe6731cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0UwOjJDMzU2NjoxNTYwRTI2OjFDMzA0RUU6NkIwMTI3MjciLCJ2aXNpdG9yX2lkIjoiNjE1ODgzOTAyNTI4NjMyNjA1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf7755ab218315655c35486acb759b8d7ed82ee56cb4040fbff1d366a366acb4 |
| hovercard-subject-tag | issue:101250232 |
| 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/deepq/embeddedjavascript/13/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82a3ffad35d5e231779d4491eeff26ea9b817dfb99bac7499c842268bd82833b/deepq/embeddedjavascript/issues/13 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82a3ffad35d5e231779d4491eeff26ea9b817dfb99bac7499c842268bd82833b/deepq/embeddedjavascript/issues/13 |
| og:image:alt | <%= message ? message : 'No message' %> When the variable message === undefined, the compiler throws an exception, even though a regular IF statement should just evaluate the expression to FALSE. B... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/deepq/embeddedjavascript git https://github.com/deepq/embeddedjavascript.git |
| octolytics-dimension-user_id | 2634649 |
| octolytics-dimension-user_login | deepq |
| octolytics-dimension-repository_id | 40810020 |
| octolytics-dimension-repository_nwo | deepq/embeddedjavascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40810020 |
| octolytics-dimension-repository_network_root_nwo | deepq/embeddedjavascript |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width