FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

v8: add new to the throw statement · nodejs/node@b3e5c46 · GitHub

/ node Public

Commit b3e5c46

Browse files
authored andcommitted
v8: add new to the throw statement
PR-URL: #13857 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 1a452f1 commit b3e5c46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/v8.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class DefaultSerializer extends Serializer {
154154
i = arrayBufferViewTypeToIndex.get(tag);
155155

156156
if (i === undefined) {
157-
throw this._getDataCloneError(`Unknown host object type: ${tag}`);
157+
throw new this._getDataCloneError(`Unknown host object type: ${tag}`);
158158
}
159159
}
160160
this.writeUint32(i);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL