Skip to content

Commit

Permalink
Change getBuiltInDescriptor to getBuiltInDataDescriptor for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
aardvark179 committed Dec 3, 2024
1 parent c14ec1c commit ad7d0a6
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -922,15 +922,15 @@ protected ScriptableObject getOwnPropertyDescriptor(Context cx, Object id) {
ScriptableObject desc = super.getOwnPropertyDescriptor(cx, id);
if (desc == null) {
if (id instanceof String) {
return getBuiltInDescriptor((String) id);
return getBuiltInDataDescriptor((String) id);
}

if (ScriptRuntime.isSymbol(id)) {
if (id instanceof SymbolKey) {
return getBuiltInDescriptor((SymbolKey) id);
return getBuiltInDataDescriptor((SymbolKey) id);
}

return getBuiltInDescriptor(((NativeSymbol) id).getKey());
return getBuiltInDataDescriptor(((NativeSymbol) id).getKey());
}
}
return desc;
Expand All @@ -954,7 +954,7 @@ private Slot queryOrFakeSlot(Context cx, Object id) {
return slot;
}

private ScriptableObject getBuiltInDescriptor(String name) {
private ScriptableObject getBuiltInDataDescriptor(String name) {
Scriptable scope = getParentScope();
if (scope == null) {
scope = this;
Expand Down Expand Up @@ -990,7 +990,7 @@ private Slot getBuiltInSlot(String name) {
return null;
}

private ScriptableObject getBuiltInDescriptor(Symbol key) {
private ScriptableObject getBuiltInDataDescriptor(Symbol key) {
Scriptable scope = getParentScope();
if (scope == null) {
scope = this;
Expand Down

0 comments on commit ad7d0a6

Please sign in to comment.