We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 451b4b7 commit 17e01f2Copy full SHA for 17e01f2
test/parallel/test-buffer-write-fast.js
@@ -6,6 +6,10 @@ const assert = require('assert');
6
7
const { internalBinding } = require('internal/test/binding');
8
9
+// eslint-disable-next-line no-unused-vars
10
+const { utf8Write } = require('internal/buffer');
11
+
12
13
function testFastUtf8Write() {
14
{
15
const buf = Buffer.from('\x80');
@@ -34,9 +38,9 @@ function testFastUtf8Write() {
34
38
}
35
39
36
40
37
-eval('%PrepareFunctionForOptimization(Buffer.prototype.utf8Write)');
41
+eval('%PrepareFunctionForOptimization(utf8Write)');
42
testFastUtf8Write();
-eval('%OptimizeFunctionOnNextCall(Buffer.prototype.utf8Write)');
43
+eval('%OptimizeFunctionOnNextCall(utf8Write)');
44
45
46
if (common.isDebug) {
0 commit comments