GeezerVison is showing github.com — src: disable fast methods for `buffer.write` · nodejs/node@e071651
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: src/node_buffer.cc +3-15Lines changed: 3 additions & 15 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1554,21 +1554,9 @@ void Initialize(Local<Object> target, | 1554 | 1554 | SetMethod(context, target, "hexWrite", StringWrite<HEX>); | 1555 | 1555 | SetMethod(context, target, "ucs2Write", StringWrite<UCS2>); | 1556 | 1556 |
| 1557 | | - SetFastMethod(context, | 1558 | | - target, | 1559 | | - "asciiWriteStatic", | 1560 | | - SlowWriteString<ASCII>, | 1561 | | - &fast_write_string); | 1562 | | - SetFastMethod(context, | 1563 | | - target, | 1564 | | - "latin1WriteStatic", | 1565 | | - SlowWriteString<LATIN1>, | 1566 | | - &fast_write_string); | 1567 | | - SetFastMethod(context, | 1568 | | - target, | 1569 | | - "utf8WriteStatic", | 1570 | | - SlowWriteString<UTF8>, | 1571 | | - &fast_write_string); | | 1557 | + SetMethod(context, target, "asciiWriteStatic", SlowWriteString<ASCII>); | | 1558 | + SetMethod(context, target, "latin1WriteStatic", SlowWriteString<LATIN1>); | | 1559 | + SetMethod(context, target, "utf8WriteStatic", SlowWriteString<UTF8>); | 1572 | 1560 |
| 1573 | 1561 | SetMethod(context, target, "getZeroFillToggle", GetZeroFillToggle); | 1574 | 1562 | } | |
|