<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>scalar</author_name>
  <author_url>https://blog.hatena.ne.jp/scalar/</author_url>
  <blog_title>hakobera's blog</blog_title>
  <blog_url>https://hakobera.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>結論 thunkifyをオブジェクトのメソッドに適用する時は、元のメソッドに代入するか、thisを元のオブジェクトにbindすること。 fs.readFile = thunkify(fs.readFile) // または var readFile = thunkify(fs.readFile.bind(fs)); ただし、fs.readFileはvar readFile = thunkify(fs.readFile.bind(fs));でも動きます。詳細は以下。 元のオブジェクトに影響を与えない、ということを考えると後者の方が良いかも。 原因 thunkify は、Node で generat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhakobera.hatenablog.com%2Fentry%2F2014%2F01%2F16%2F195120&quot; title=&quot;thunkify する時に注意すべきたった１つのこと - hakobera&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-01-16 19:51:20</published>
  <title>thunkify する時に注意すべきたった１つのこと</title>
  <type>rich</type>
  <url>https://hakobera.hatenablog.com/entry/2014/01/16/195120</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
