Skip to content

Commit

Permalink
updating outdated comment on defineProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
nabacg authored and gbrail committed Aug 31, 2024
1 parent 4eb68d5 commit cc35324
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1698,9 +1698,8 @@ public void defineProperty(
* need to have access to target object instance, this allows for defining properties on
* LambdaConstructor prototype providing getter and setter logic with java instance methods. If
* a property with the same name already exists, then it will be replaced. This property will
* appear to the JavaScript user exactly like any other property -- unlike Function properties
* and those based on reflection, the property descriptor will only reflect the value as defined
* by this function.
* appear to the JavaScript user exactly like descriptor with a getter and setter, just as if
* they had been defined in JavaScript using Object.defineOwnProperty.
*
* @param name the name of the property
* @param getter a function that given Scriptable `this` returns the value of the property. If
Expand Down

0 comments on commit cc35324

Please sign in to comment.