Skip to content

Commit

Permalink
[GR-60775] Removing an obsolete problematic hack in ExecuteNativeProp…
Browse files Browse the repository at this point in the history
…ertyHandlerNode.

PullRequest: js/3373
  • Loading branch information
iamstolis committed Jan 2, 2025
2 parents 5f7ef77 + 432bc37 commit 0206e9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
Expand Down Expand Up @@ -281,10 +281,6 @@ private Object executeGetOwnPropertyDescriptor(ObjectTemplate template, Object h
}
if (desc == null) {
desc = JSObject.getOwnProperty((JSDynamicObject) arguments[2], arguments[3]);
if (desc == null && indexedHandler != null) {
// handles a suspicious part of indexedinterceptors-test in nan package
desc = executeGetOwnPropertyDescriptorHelper(template, holder, arguments, false);
}
}
}
return (desc == null) ? Undefined.instance : JSRuntime.fromPropertyDescriptor(desc, context);
Expand Down
5 changes: 4 additions & 1 deletion graal-nodejs/test/graal/unit/vm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
Expand Down Expand Up @@ -151,4 +151,7 @@ describe('vm', function () {
assert(!globalPropertySymbols.includes(Symbol.unscopables), globalPropertySymbols);
assert.strictEqual(43, vm.runInContext('globalThis[Symbol.unscopables]', context));
});
it('should handle globalThis.hasOwnProperty(symbol)', function () {
assert.ok(!vm.runInNewContext("globalThis.hasOwnProperty(Symbol())"));
});
});

0 comments on commit 0206e9f

Please sign in to comment.