Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Update runner.js to be compatible with Node14 #69

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

fenghaolw
Copy link
Contributor

In Node14, writeFileSync performs a validation (validateStringAfterArrayBufferView) on the data passed into it and only accepts certain data types (i.e. string, Buffer, TypedArray, or DataView).

Currently runner.js passes a SourceMapGenerator into writeFileSync. So it needs to be converted into an accepted type (i.e a string).

This is a change that happened in google internal and should be upstreamed.

In Node14, `writeFileSync` performs a validation (validateStringAfterArrayBufferView) on the data passed into it and only accepts certain data types (i.e. string, Buffer, TypedArray, or DataView).

Currently `runner.js` passes a SourceMapGenerator into writeFileSync. So it needs to be converted into an accepted type (i.e a string).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants