mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8135178: importPackage not working even with load "Mozilla compatibility script"
Reviewed-by: hannesw
This commit is contained in:
parent
e196ae9be6
commit
589129ece4
2 changed files with 49 additions and 1 deletions
|
@ -45,7 +45,7 @@ Object.defineProperty(this, "JavaAdapter", {
|
|||
// importPackage
|
||||
// avoid unnecessary chaining of __noSuchProperty__ again
|
||||
// in case user loads this script more than once.
|
||||
if (typeof importPackage == 'undefined') {
|
||||
if (typeof importPackage == 'undefined' || !(importPackage instanceof Function)) {
|
||||
|
||||
Object.defineProperty(this, "importPackage", {
|
||||
configurable: true, enumerable: false, writable: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue