-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
The prebuilt wheels of the latest versions does not seem to support Isolates (tested both on MacOS and Linux) The following code shows the idea:
import STPyV8
def test_pyv8():
print("STPyV8 version:", STPyV8.__version__)
print("Current Isolate:", STPyV8.JSIsolate.current)
isolate1 = STPyV8.JSIsolate()
print("Isolate1:", isolate1)
isolate2 = STPyV8.JSIsolate()
print("Isolate2:", isolate2)
print("Current Isolate:", STPyV8.JSIsolate.current)
isolate1.enter()
print("Current Isolate after entering Isolate1:", STPyV8.JSIsolate.current)
isolate1.leave()
isolate2.enter()
print("Current Isolate after entering Isolate2:", STPyV8.JSIsolate.current)
isolate2.leave()
test_pyv8()
Output:
STPyV8 version: 13.1.201.22
Current Isolate: <_STPyV8.JSIsolate object at 0x100d77450>
Isolate1: <STPyV8.JSIsolate object at 0x100e4cb30>
Isolate2: <STPyV8.JSIsolate object at 0x100eb9620>
Current Isolate: <_STPyV8.JSIsolate object at 0x100d77450>
Current Isolate after entering Isolate1: <_STPyV8.JSIsolate object at 0x100d77450>
Current Isolate after entering Isolate2: <_STPyV8.JSIsolate object at 0x100d77450>
Is this a known issue? And what can be done to support entering Isolates?
Metadata
Metadata
Assignees
Labels
No labels