mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
test: fix test-fs-write for V8 13.6
The `--expose_externalize_string` flag adds a new global. PR-URL: https://github.com/nodejs/node/pull/58070 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
parent
248b1f48a8
commit
a2d157ef23
1 changed files with 3 additions and 0 deletions
|
@ -37,17 +37,20 @@ const constants = fs.constants;
|
|||
|
||||
const {
|
||||
createExternalizableString,
|
||||
createExternalizableTwoByteString,
|
||||
externalizeString,
|
||||
isOneByteString,
|
||||
} = globalThis;
|
||||
|
||||
assert.notStrictEqual(createExternalizableString, undefined);
|
||||
assert.notStrictEqual(createExternalizableTwoByteString, undefined);
|
||||
assert.notStrictEqual(externalizeString, undefined);
|
||||
assert.notStrictEqual(isOneByteString, undefined);
|
||||
|
||||
// Account for extra globals exposed by --expose_externalize_string.
|
||||
common.allowGlobals(
|
||||
createExternalizableString,
|
||||
createExternalizableTwoByteString,
|
||||
externalizeString,
|
||||
isOneByteString,
|
||||
globalThis.x,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue