Title: .parent and .offset of Buffer and SlowBuffer .prototype throw an exception when accessed · Issue #3297 · nodejs/node · GitHub
Open Graph Title: .parent and .offset of Buffer and SlowBuffer .prototype throw an exception when accessed · Issue #3297 · nodejs/node
X Title: .parent and .offset of Buffer and SlowBuffer .prototype throw an exception when accessed · Issue #3297 · nodejs/node
Description: I was writing a tool to scrape the APIs of everything and stumbled across these in the buffer module. Repro: Run the following JS on any version of node/io.js from 3.0.0 until 4.1.2 (current as of time of writing) var buffer = require('b...
Open Graph Description: I was writing a tool to scrape the APIs of everything and stumbled across these in the buffer module. Repro: Run the following JS on any version of node/io.js from 3.0.0 until 4.1.2 (current as of ...
X Description: I was writing a tool to scrape the APIs of everything and stumbled across these in the buffer module. Repro: Run the following JS on any version of node/io.js from 3.0.0 until 4.1.2 (current as of ...
Opengraph URL: https://github.com/nodejs/node/issues/3297
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":".parent and .offset of Buffer and SlowBuffer .prototype throw an exception when accessed","articleBody":"I was writing a tool to scrape the APIs of everything and stumbled across these in the buffer module. \n### Repro:\n\nRun the following JS on any version of node/io.js from 3.0.0 until 4.1.2 (current as of time of writing)\n\n``` js\nvar buffer = require('buffer')\nbuffer.Buffer.prototype.parent\nbuffer.Buffer.prototype.offset\nbuffer.SlowBuffer.prototype.parent\nbuffer.SlowBuffer.prototype.offset\n```\n\nExample output:\n\n```\nbuffer.js:311\n if (this.byteLength === 0 ||\n ^\n\nTypeError: Method Uint8Array.byteLength called on incompatible receiver [object Object]\n at Buffer.get byteLength (native)\n at Buffer.Object.defineProperty.get [as parent] (buffer.js:311:13)\n at Object.\u003canonymous\u003e (/Users/wmcdonald/devel/newrelic/api-scraper/bad-buffer.js:2:24)\n at Module._compile (module.js:434:26)\n at Object.Module._extensions..js (module.js:452:10)\n at Module.load (module.js:355:32)\n at Function.Module._load (module.js:310:12)\n at Function.Module.runMain (module.js:475:10)\n at startup (node.js:118:18)\n at node.js:952:3\n```\n\nCCing @trevnorris since he asked me to.\n","author":{"url":"https://github.com/wraithan","@type":"Person","name":"wraithan"},"datePublished":"2015-10-09T18:38:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3297/node/issues/3297"}
| 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:c0f0ed77-efc3-e237-7852-c85a5cbab526 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D09E:73567:2303E0:33177A:6A4E00DA |
| html-safe-nonce | 90c26c42ce5b515b9f21c748483708c52e6f795207d904427e5b4ad191b22821 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDlFOjczNTY3OjIzMDNFMDozMzE3N0E6NkE0RTAwREEiLCJ2aXNpdG9yX2lkIjoiNjIzNDc2MjA5NDE3Mzg4MDUzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a425483cf450ea28be0abf62811b3b2653c1e07d30b06a43698e50fbed49c9cb |
| hovercard-subject-tag | issue:110714732 |
| 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/3297/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d738034d8976decdf62cc057abc9b58eacc0cfbf490340c0e2f8e62f79efd3e4/nodejs/node/issues/3297 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d738034d8976decdf62cc057abc9b58eacc0cfbf490340c0e2f8e62f79efd3e4/nodejs/node/issues/3297 |
| og:image:alt | I was writing a tool to scrape the APIs of everything and stumbled across these in the buffer module. Repro: Run the following JS on any version of node/io.js from 3.0.0 until 4.1.2 (current as of ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wraithan |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| 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 | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width