Skip to content

Commit 71964ab

Browse files
authored
Added the case where cause field does not exist in options in NativeError constructor (#4876)
1 parent 299a3e5 commit 71964ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/built-ins/NativeErrors/cause_property_native_error.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ for (var i = 0; i < nativeErrors.length; ++i) {
4242

4343
verifyProperty(new nativeError(message), "cause", undefined);
4444
verifyProperty(new nativeError(message, { cause: undefined }), "cause", { value: undefined });
45+
verifyProperty(new nativeError(message, {}), "cause", undefined);
4546
}

0 commit comments

Comments
 (0)