File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Assets/core/upm/Runtime/Src/Backends Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1010
1111namespace Puerts
1212{
13- public class BackendNodeJS : BackendV8
13+ public class BackendNodeJS : BackendJs
1414 {
1515 IntPtr isolate ;
1616 public BackendNodeJS ( ILoader loader ) : base ( loader ) { }
@@ -51,22 +51,22 @@ public override void LowMemoryNotification()
5151 PapiNodejsNative . NodejsLowMemoryNotification ( isolate ) ;
5252 }
5353
54- public override bool IdleNotificationDeadline ( double DeadlineInSeconds )
54+ public bool IdleNotificationDeadline ( double DeadlineInSeconds )
5555 {
5656 return PapiNodejsNative . NodejsIdleNotificationDeadline ( isolate , DeadlineInSeconds ) ;
5757 }
5858
59- public override void RequestMinorGarbageCollectionForTesting ( )
59+ public void RequestMinorGarbageCollectionForTesting ( )
6060 {
6161 PapiNodejsNative . NodejsRequestMinorGarbageCollectionForTesting ( isolate ) ;
6262 }
6363
64- public override void RequestFullGarbageCollectionForTesting ( )
64+ public void RequestFullGarbageCollectionForTesting ( )
6565 {
6666 PapiNodejsNative . NodejsRequestFullGarbageCollectionForTesting ( isolate ) ;
6767 }
6868
69- public override void TerminateExecution ( )
69+ public void TerminateExecution ( )
7070 {
7171 PapiNodejsNative . NodejsTerminateExecution ( isolate ) ;
7272 }
Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ public void TestJsGC()
11711171 randomCount;
11721172 " ) ;
11731173
1174- if ( jsEnv . Backend is BackendV8 )
1174+ if ( jsEnv . Backend is BackendV8 || jsEnv . Backend is BackendNodeJS )
11751175 {
11761176 jsEnv . Eval ( "gc()" ) ;
11771177 }
@@ -1185,7 +1185,7 @@ public void TestJsGC()
11851185
11861186 jsEnv . Eval ( "objs = undefined" ) ;
11871187
1188- if ( jsEnv . Backend is BackendV8 )
1188+ if ( jsEnv . Backend is BackendV8 || jsEnv . Backend is BackendNodeJS )
11891189 {
11901190 jsEnv . Eval ( "gc()" ) ;
11911191 }
@@ -1218,7 +1218,7 @@ public void TestJsStructGC()
12181218 randomCount;
12191219 " ) ;
12201220
1221- if ( jsEnv . Backend is BackendV8 )
1221+ if ( jsEnv . Backend is BackendV8 || jsEnv . Backend is BackendNodeJS )
12221222 {
12231223 jsEnv . Eval ( "gc()" ) ;
12241224 }
@@ -1232,7 +1232,7 @@ public void TestJsStructGC()
12321232
12331233 jsEnv . Eval ( "objs = undefined" ) ;
12341234
1235- if ( jsEnv . Backend is BackendV8 )
1235+ if ( jsEnv . Backend is BackendV8 || jsEnv . Backend is BackendNodeJS )
12361236 {
12371237 jsEnv . Eval ( "gc()" ) ;
12381238 }
You can’t perform that action at this time.
0 commit comments