Skip to content

Commit

Permalink
Improve fallback code of Interop#instantiate:with:
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jun 10, 2021
1 parent 2378981 commit a766019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ primitives instantiables
instantiate: anObject with: arguments
<primitive: 'primitiveInstantiate' module: 'PolyglotPlugin'>
^ (self isInstantiable: anObject)
ifTrue: [ anObject interopInstantiate: arguments ]
ifTrue: [ anObject isForeignObject
ifTrue: [ Polyglot signalPolyglotError ]
ifFalse: [ anObject interopInstantiate: arguments ] ]
ifFalse: [ self error: 'Object is not instantiable' ]
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"hasSourceLocation:" : "fn 3/5/2021 14:43",
"hostIdentityHashCode:" : "fn 2/11/2021 12:04",
"identityHashCode:" : "fn 3/9/2021 16:49",
"instantiate:with:" : "fn 3/9/2021 12:40",
"instantiate:with:" : "fn 6/10/2021 14:01",
"invokeMember:member:arguments:" : "fn 3/11/2021 09:48",
"isArrayElementExisting:index:" : "fn 3/5/2021 14:44",
"isArrayElementInsertable:index:" : "fn 3/5/2021 14:52",
Expand Down

0 comments on commit a766019

Please sign in to comment.