Category: JavaScript

0

Call and retry last Allocation failed

Solution: node –max–old-space-size=4096 <filename> You need to tell node to overwrite default heap size in v8. To see all the available v8 flags run the following command: node –v8-options —Further details on chromium bug

0

path.join vs path.resolve in node.js

path.join([…paths]) joins all the path segments using platform specific delimiter. path.join(‘/foo’, ‘bar’, ‘baz/zxcv’, ‘abcd’, ‘..’) // ‘/foo/bar/baz/zxcv/abcd/…’ path.resolve([…paths]) Resolves all the path segments into an absolute path. It processes from right to left, until...

0

href javascript ; void 0

The void operator is often used to obtain the undefined primitive value. <a href=”javascript:void(0);”> Click Me </a> In this case, it is used to avoid # in the URI bar. The hrefs value will...