Title: Node >= 8.0.0 inconsistently not throwing "Maximum call stack size exceeded" · Issue #17684 · nodejs/node · GitHub
Open Graph Title: Node >= 8.0.0 inconsistently not throwing "Maximum call stack size exceeded" · Issue #17684 · nodejs/node
X Title: Node >= 8.0.0 inconsistently not throwing "Maximum call stack size exceeded" · Issue #17684 · nodejs/node
Description: Version: 9.1.0 or higher Platform: Travis CI build Build system information Build language: node_js Build group: stable Build dist: trusty Build id: 316498514 Job id: 316498516 Runtime kernel version: 4.9.6-040906-generic travis-build ve...
Open Graph Description: Version: 9.1.0 or higher Platform: Travis CI build Build system information Build language: node_js Build group: stable Build dist: trusty Build id: 316498514 Job id: 316498516 Runtime kernel versi...
X Description: Version: 9.1.0 or higher Platform: Travis CI build Build system information Build language: node_js Build group: stable Build dist: trusty Build id: 316498514 Job id: 316498516 Runtime kernel versi...
Opengraph URL: https://github.com/nodejs/node/issues/17684
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Node >= 8.0.0 inconsistently not throwing \"Maximum call stack size exceeded\"","articleBody":"* **Version**: 9.1.0 or higher\r\n* **Platform**: [Travis CI build](https://travis-ci.org/inversify/InversifyJS/jobs/316498440#L8-L21)\r\n\r\n```\r\nBuild system information\r\nBuild language: node_js\r\nBuild group: stable\r\nBuild dist: trusty\r\nBuild id: 316498514\r\nJob id: 316498516\r\nRuntime kernel version: 4.9.6-040906-generic\r\ntravis-build version: 724aa1721\r\nBuild image provisioning date and time\r\nTue Dec 5 20:11:19 UTC 2017\r\nOperating System Details\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 14.04.5 LTS\r\nRelease:\t14.04\r\nCodename:\ttrusty\r\n```\r\n\r\nI'm the author of [InversifyJS](https://github.com/inversify/InversifyJS). InversifyJS is an IoC container and it is designed to throw an exception if it finds a circular dependency.\r\n\r\n```ts\r\ntry {\r\n const result = willThrow();\r\n throw new Error(\r\n `This line should never be executed. Expected \r\n 'willThrow' to throw! ${JSON.stringify(result)}`\r\n );\r\n} catch (e) {\r\n // expect e to match some error (not the error above)\r\n}\r\n```\r\n\r\nThe `willThrow` function should catch an Error of type `Maximum call stack size exceeded` and throw a custom error this is the case in versions 7.10.1, 8.8.1 but not the case in 9.2.0 or 9.3.0.\r\n\r\nIt is quite crazy because it [is resolving an object that cannot be resolved (a circular object)](https://travis-ci.org/inversify/InversifyJS/jobs/316498440#L2521).\r\n\r\nI have tried 9.3.0 in a few machines:\r\n\r\n- Ubuntu 14.04.5 LTS (Circle CI)\r\n- Windows 8.1 x86 (App veyor)\r\n- Macbook Pro 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64\r\n- Linux Mint 4.4.0-21-generic 37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nThe only machines with the expected behavior (an exception is thrown) are the Macbook Pro and the WIndows machine.\r\n\r\nI have a build that reproduces the issue https://travis-ci.org/inversify/InversifyJS/builds/316498439 and a PR https://github.com/inversify/InversifyJS/pull/716.\r\n\r\nThanks\r\n","author":{"url":"https://github.com/remojansen","@type":"Person","name":"remojansen"},"datePublished":"2017-12-14T16:36:46Z","url":"https://github.com/nodejs/node/issues/17684"}
| 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:f891aedf-590c-61c8-da23-56adc4f21878 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FF6:34C228:993B8:D4416:6AFBC85F |
| html-safe-nonce | 12e67b9028cfdd056d1536a516950d02cf4734d0f59f9eefbbe55c01879f17d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkY2OjM0QzIyODo5OTNCODpENDQxNjo2QUZCQzg1RiIsInZpc2l0b3JfaWQiOiI0ODUyMDEzMzE5NDI1NzQxNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fd83ffc6950ee1567cebcd3039280777d575e774155e8e5754dfaf71e9d1803b |
| hovercard-subject-tag | issue:282162950 |
| 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/nodejs/node/17684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a04c826ee087da521fbb0c8e1030decce44868d16c70f627b995d558f076ee8/nodejs/node/issues/17684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a04c826ee087da521fbb0c8e1030decce44868d16c70f627b995d558f076ee8/nodejs/node/issues/17684 |
| og:image:alt | Version: 9.1.0 or higher Platform: Travis CI build Build system information Build language: node_js Build group: stable Build dist: trusty Build id: 316498514 Job id: 316498516 Runtime kernel versi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | remojansen |
| hostname | github.com |
| expected-hostname | github.com |
| None | d440bda0d812801778b27bfe9f7c1ce9ff22420c73f6f95150c4fcbca311c50b |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | 2c43021aed8695990c86c0eaaedc600bfeffec36 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width