Skip to content

Commit ac31afa

Browse files
committed
Update error message
1 parent a2a6de4 commit ac31afa

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/utils/define-property/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/utils/define-property/lib/polyfill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function defineProperty( obj, prop, descriptor ) {
8484
hasSet = hasProperty( descriptor, 'set' );
8585

8686
if ( hasValue && ( hasGet || hasSet ) ) {
87-
throw new Error( 'invalid argument. Cannot specify both accessors and a value or writable attribute in the property descriptor' );
87+
throw new Error( 'invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.' );
8888
}
8989

9090
if ( hasGet && defineGetter ) {

0 commit comments

Comments
 (0)