Title: Ternary operator with undefined variables · Issue #12 · deepq/embeddedjavascript · GitHub
Open Graph Title: Ternary operator with undefined variables · Issue #12 · deepq/embeddedjavascript
X Title: Ternary operator with undefined variables · Issue #12 · 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/12
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:03\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-08-16T10:21:04Z","url":"https://github.com/deepq/embeddedjavascript/issues/12"}
| 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:b34d8e59-3b69-de11-f981-383a0dbce9b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A57C:2454CC:12FB65F:181E349:6B01246C |
| html-safe-nonce | 49db50f61688e28c8102559030cbfe665729b6a55561d947e86c60cc4222b721 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTdDOjI0NTRDQzoxMkZCNjVGOjE4MUUzNDk6NkIwMTI0NkMiLCJ2aXNpdG9yX2lkIjoiNTQ4NjM5OTkwNTgzNDU0MjE4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a42733594180742a8c740f57e5faa545b9f6a304e4d99233efe306340d86fb60 |
| hovercard-subject-tag | issue:101250231 |
| 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/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82a3ffad35d5e231779d4491eeff26ea9b817dfb99bac7499c842268bd82833b/deepq/embeddedjavascript/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82a3ffad35d5e231779d4491eeff26ea9b817dfb99bac7499c842268bd82833b/deepq/embeddedjavascript/issues/12 |
| 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